+ 6
How machine (pc) can generate random numbers?
Such. As (in python) Random.random()
7 Antworten
+ 6
random.randint(start, end)
It's ok but how machine do it
+ 5
I don't know buddy
+ 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.
+ 2
PythonPip 👏👏👏👍👍👍
+ 1
import random
random.randint(start, end)
+ 1
Bhavesh Sen
Hmmm... Idk that
Good question
Is that something related to AI/ML