+ 6

How machine (pc) can generate random numbers?

Such. As (in python) Random.random()

28th May 2020, 6:00 AM
Bhavesh Sen
Bhavesh Sen - avatar
6 ответов
+ 6
random.randint(start, end) It's ok but how machine do it
28th May 2020, 6:19 AM
Bhavesh Sen
Bhavesh Sen - avatar
+ 5
I don't know buddy
28th May 2020, 6:26 AM
Bhavesh Sen
Bhavesh Sen - avatar
+ 5
Computers can generate random numbers in many ways. Like taking the current time and applying a formula to it, seeding, pseudo randomness, etc. Computer used for high precision work generate these by taking information from physical world. like: mouse movement, keyboard typing algorithm, amount of light going into light sensor, gyro, compass, and other infinite ways. As to my thinking nothing is random at the basic level of universe. Everything is predefined according to factors affecting it.
28th May 2020, 6:49 AM
Tricker
+ 2
PythonPip 👏👏👏👍👍👍
28th May 2020, 7:32 AM
Namit Jain
Namit Jain - avatar
+ 1
import random random.randint(start, end)
28th May 2020, 6:17 AM
Namit Jain
Namit Jain - avatar
+ 1
Bhavesh Sen Hmmm... Idk that Good question Is that something related to AI/ML
28th May 2020, 6:20 AM
Namit Jain
Namit Jain - avatar