News for hackers. Stuff that matters.
Re:Random Numbers in Bash by zamadatix on Monday March 27, 2023 @10:55AM (#35327495)
The standard approach is to take the CDF form of the desired distribution, solve it for equaling some constant, then plug in your uniform value and out comes where on the desired distribution that maps to. The hard part is you either have to pre-solve it or use numerical solving methods and in either case you'd have to write that in Bash.

There are no comments on this comment yet.