r/computerscience • • Jan 27 '24

How tf do computers generate random numbers?

Hi guys, I’ve been using random number generators lately and I can’t seem to figure out how a computer can generate a random number. Don’t they just do what they’re told? Please explain like im stupid Edit: holy moly this is blowing up

501 Upvotes

178 comments sorted by

View all comments

Show parent comment

1

u/carnalcarrot Jul 26 '24

What about the position of an electron at any given moment if its momentum is known?

1

u/deano_southafrican Jul 26 '24

It's unknown to you.