LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] random number generation

[ILUG] random number generation

Declan Moriarty junk_mail at iol.ie
Wed Jun 21 17:56:35 IST 2006


On Wed, 2006-06-21 at 13:02 +0100, JMcCarthy at mortgagelink.ie wrote:
> The best way to generate a random number without using a computer
> 
> Anyone else got any other ideas?

Here's yet another.

The value of PI (sorry, symbol mapped out) in __nearly__ 22/7, but has
been calculated out to over 200 decimal places. The numbers are pseudo
random. 
3.1415etc...
Lay out 200 digits. If you have parameters for your size of random
number, apply them (e.g. 7 digits). Take the first 2 digits (14), skip
14 digits, and begin your number there. Take the next 2 as the skip,
followed by the random. When you get to 200, wrap around so digit 201 --
> =1415etc

The early numbers (like the first) won't be random, but as long as you
don't restart in the same place, they'll be as random as you need. You'd
need a computer to determine whether they were random or pseudo random
and you don't have the use of that, do you ;-).

 

-- 
        With Best Regards,

        Declan Moriarty.




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell