View Single Post
  #2  
Old 11-17-2007, 03:38 AM
RustyBrooks RustyBrooks is offline
Senior Member
 
Join Date: Feb 2006
Location: Austin, TX
Posts: 1,380
Default Re: Looking for event-based random number generator

This sparked a small memory in me and I did a quick investigation and it seems to hold.

You can actually generate a series of random numbers that are normally distributed by adding together 2 numbers that are randomly generated by a linear distribution. I remembered this because when you roll 2 dice, the sum of the dice is a standard distribution.

You can adjust to scale to the desired mean/standard deviation.

So, if you know any kind of programming language, go through a loop 100 times and do this:

n1 = rand()*std*2.45
n2 = rand()*std*2.45
num = mean + n1 + n2 - std*2.45

Why 2.45? I don't know. But it works.

I wrote a quick program for it. I could probably throw it up on the web if you're interested.
Reply With Quote