also, you can drop the int, like i have. and you meanmap ++$array[rand $elements], 1..$sum;
don't you?$array[$_] ||= 0 for 0..$elements-1;
~Particle ;Þ
In reply to Re: Re: Randomly generating histograms
by particle
in thread Randomly generating histograms
by narse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |