• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Question about random number on AS 1.5.5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Eudora Attachments?
  • Next by Date: Re: weird comparison problem
  • Previous by thread: Re: Question about random number on AS 1.5.5
  • Next by thread: X-Post: Cross platform graphics problem...
  • Index(es):
    • Date
    • Thread