Generate pseudo Gaussian random numbers for pwm pins

"Better" is always conditioned by some specific need or benchmark. Without knowing your exact requirements, it is impossible to usefully assist.

By the way, you said "drawn" from a Gaussian distribution. Are you allowing or disallowing identical numbers in the "draw"?

Why do you think the library wouldn't work for you? Why would there be a "better way"? Is something deficient about it that needs to be fixed?