It turns out that the best way I can think of to do that (in the general case) is my @testData = map {int rand(1000)} 0..1_000_000;, which isn't as readable (but does have the advantage of working).
This makes me wonder if I should bring it up on perl6-language, as I know of no better way to do it there.
In reply to Re^2: Using x to build data structures considered harmful
by theorbtwo
in thread Using x to build data structures considered harmful
by dws
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |