Re: Question about random number on AS 1.5.5
Re: Question about random number on AS 1.5.5
- Subject: Re: Question about random number on AS 1.5.5
- From: email@hidden
- Date: Mon, 26 Feb 2001 16:05:27 -0500
On Mon, 26 Feb 2001 06:35:31 -0800, Richard 23 <email@hidden> wrote,
>
random number 1.0E+14
>
>
But all of the results were between 1E+12 and 1E+14 (in the tb range).
>
>
Doesn't seem very random, the scatter I mean.
Not surprising, since there are 99 times more numbers between 1e+12 and 1e+14 as
there are between 1 and 1e+12. Just as there are 99 times more numbers between
10 and 1000 as between 1 and 10.
You probably want an exponential distribution of your random numbers, so pick a
random real number between 0 and 14, and raise 10 to that power.
--
Scott Norton Phone: +1-703-299-1656
DTI Associates, Inc. Fax: +1-703-706-0476
2920 South Glebe Road Internet: email@hidden
Arlington, VA 22206-2768 or email@hidden