Jump to content

How do you guys create a random number?

Featured Replies

How do you guys create a random number? ..and ensure that a number is truly random.

 

By that I mean for example:

a set of dice should be predictable if all the physical variables are calculated.

So that would make dice not truly random.

Well if you could actually predict all the physical aspects of a die then well done you.

When it comes to computers it's often just some function based on the current time.

 

If you want true randomness then Quantum Mechanics can help but that isn't exactly practical.

How do you guys create a random number?

 

we qualify our statements to define random, and number, and then get a generator that provides statistically indistinguishable numbers from the ideal we so define.

random number generators generates pseudorandom numbers

 

I can't think of any way to create truly random numbers (as you define it, because dice aren't random enough I guess) other than with quantum mechanics of some sort.

In my programming class in school we learned how the random numbers were just divisions by specified amounts of the time of the computer - which has about 7 decimal points if I remember correctly (these were old computers, I don't know if that matters). Even computers cannot yet create complete randomness.

my texas instrument TI-83 plus calcumalator can if you go under apps and then go to prob sim. i no its not truly random but...:rolleyes:

  • Author

Thanks guys.

 

That’s what I thought.

 

just checking.

the way we used to do it was to use the real-time-clock register and parse that to become a seed value for the RND function.

you`ll not get much more "random" than that :)

I remember reading somewhere that you can generate a pseudorandom address of an internet data packet which is then used to create a pseudorandom number based on the data inside the packet.

another Truly random generator method would be to use a white noise generator and then convert this signal with an A to D converter.

the noise is made by electrons crossing the depletion zone of a PN junction, there no "Pattern" to it.

  • 4 weeks later...

Archived

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

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.