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.
In reply to Rand() with ?log10? distribution? by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |