random number generator | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

random number generator

Can we do random number generation without using python built in library "random"? i want to do it for numbers between 0&1 and numbers should follow gaussian distribution.

29th Nov 2016, 4:47 AM
Yudhishther Seth
Yudhishther Seth - avatar
3 Answers
0
the function actually generates normally-distributed (Gaussian) random numbers!
29th Nov 2016, 6:52 AM
Rill Chritty
Rill Chritty - avatar
0
how can we do so?
29th Nov 2016, 7:18 AM
Yudhishther Seth
Yudhishther Seth - avatar
0
Random number generation is entirely possible. You just need a lot of math, and a way to access the entropy sources in your computer. Look up Linear Congruential Generator for one of the more basic computation methods. As for the entropy, you will have to study up on the internals of a computer, and learn how to access it.
29th Nov 2016, 2:27 PM
Jay
Jay - avatar