How random no. Gnerate? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How random no. Gnerate?

As far as I know no any tool hv the ability of thinking so what is the key behind generation of random nos? Example: import random for i in range(5): value = random.randint(1, 6) print(value)

4th Aug 2019, 6:34 AM
Deepak Mishra
Deepak Mishra - avatar
4 Answers
+ 1
What language?
4th Aug 2019, 6:39 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
0
That's python
4th Aug 2019, 7:08 AM
Huw
Huw - avatar
0
do you mean: how pseudo random numbers are generated? there are different algoritms for that...
4th Aug 2019, 9:42 AM
Anton Böhler
Anton Böhler - avatar