• 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: random scatter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: random scatter


  • Subject: Re: random scatter
  • From: Daniel Shockley <email@hidden>
  • Date: Mon, 26 Feb 2001 10:52:46 -0800 (PST)

> Since it included a handler that converts sizes to a string with the
> appropriate label (eg, "28 bytes", "2.1 gb", "5.2k" etc) I gave it a
> big range:
>
> random number 1.0E+14
>
> But all of the results were between 1E+12 and 1E+14 (in the tb range).

Interestingly enough, if the requested range was 1 through 1.0E+14, and you asked for 100
different random numbers, you most likely would get one or no numbers less than 1E+12, since there
are 100 times as many numbers in the group over 1E12. Think about it in terms of smaller numbers:
if you gave a range of 1 through 1e4, you'd expect that most of 100 results would be over 100,
right? There are 9900 numbers in that set above 100, and only 100 (of course) in the range 1
through 1e2.

Hope that helps,


=====
Daniel A. Shockley
email@hidden

And now for a message from my sponsor... *grin*
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/


  • Follow-Ups:
    • Re: random scatter
      • From: Chris Nebel <email@hidden>
  • Prev by Date: Re: weird comparison problem
  • Next by Date: Scripting icon copying: Finder barfs - howcome?
  • Previous by thread: Re: Persistant Properties
  • Next by thread: Re: random scatter
  • Index(es):
    • Date
    • Thread