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.

Edited by Manixat
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.