those "shuffled" results relate to what the other results represent?
They achieve the same results -- an array of 100 random integers in the range 1 ,, 120 -- 20 times more efficiently than your best attempt and nearly 100 times more efficiently than your worst; whilst saving 100MB of memory and the setup costs.
And the random selection of the values in that array is statistically fair with my method and not with yours.
In reply to Re^7: Curious find while comparing grep, map, and smart match...
by BrowserUk
in thread Curious find while comparing grep, map, and smart match...
by dbuckhal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |