Jump to content

how is a random number generated?


Manixat

Recommended Posts

Well all seems logical, but the one bit that is bothering me is that algorithm. How does it randomly pick a value from the predefined list ?? I know it must be described somewhere there in the article but I hate reading whole articles just to find a tiny bit of information that I need. Now don't misunderstand, I don't want you to read the article for me, just someone to share if is already aware of how that works.

I know it must be described somewhere there in the article but I hate reading whole articles just to find a tiny bit of information that I need.

 

Time to find a new hobby/profession then. The above is essentially a programmers life. I don't think I'm the only one reguarly reading books on programming, and most of any book is redundant, but that's what you do to get the new info.

Well all seems logical, but the one bit that is bothering me is that algorithm. How does it randomly pick a value from the predefined list ??

 

It isn't random. It's pseudorandom. Given the same seed, you'll always get the same number. PRNGs generate numbers that are difficult to predict without the seed so they look random.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.