Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Rand() with ?log10? distribution?by BrowserUk (Patriarch) |
on Jun 07, 2013 at 02:17 UTC ( [id://1037549]=perlquestion: print w/replies, xml ) | Need Help?? |
BrowserUk has asked for the wisdom of the Perl Monks concerning the following question: I want a rand function that produces lots of small numbers and a few big ones. Say twice as many 0-9, as 10..99. And twice as many 0-99 as 100-999,. Etc. Feels like log10 should be in there somewhere. Or maybe 10**something. Note: I'm not looking for a function embedded in one of the big Math::* C libraries, as I will almost certainly want to tweak the distribution. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
Back to
Seekers of Perl Wisdom
|
|