# Random Number Generation Question

**URL:** <https://boards.straightdope.com/t/random-number-generation-question/622744>\
**Category:** Factual Questions\
**Created:** [May 22, 2012, 6:49pm UTC](https://boards.straightdope.com/t/random-number-generation-question/622744 "2012-05-22T18:49:14Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![szabrocki](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@szabrocki](https://boards.straightdope.com/u/szabrocki)\
**Post date:** [May 23, 2012, 5:07am UTC](https://boards.straightdope.com/t/random-number-generation-question/622744/21 "2012-05-23T05:07:05Z")

</div>

All random generators need a seed number. I use the voltage coming into the power supply on a server.

Say it is 230 volts. It is really 230.XXXXXX volts. That XXXXXX constantly changes in microseconds.

Use the decimal ( or part of it) as the seed number and that is about as random as you can get as it changes every moment.

---

<div class="post-metadata">

**Author:** ![septimus](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/septimus/32/410_2.png) [@septimus](https://boards.straightdope.com/u/septimus)\
**Post date:** [May 23, 2012, 4:33pm UTC](https://boards.straightdope.com/t/random-number-generation-question/622744/22 "2012-05-23T16:33:49Z")

</div>

> [@szabrocki](#):
>
> All random generators need a seed number. I use the voltage coming into the power supply on a server.

To each his own. My great-uncle used [the U.S. Treasury daily balance](http://news.google.com/newspapers?nid=888&dat=19470731&id=IFJPAAAAIBAJ&sjid=6k4DAAAAIBAJ&pg=2640,210046).

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [May 23, 2012, 5:08pm UTC](https://boards.straightdope.com/t/random-number-generation-question/622744/23 "2012-05-23T17:08:19Z")

</div>

It depends on how much entropy you need, and how quickly you burn through it. You can also get entropy from user input devices like keyboards and mice, or from a microphone, or from the least-significant bits of the processor temperature, all things which the typical computer has access to. If you really want to get serious about it, you get a special piece of hardware that has a sample of some radioactive material in it, and use the timing of the decays to generate entropy.

[Previous page](https://boards.straightdope.com/t/random-number-generation-question/622744.md?page=1)
