I'm working with a PDL and I would like to initialize my pdl as 100x100 with random values in the range of 1-5.
I've found that $a = random(100,100); will give me a 100x100 piddle with random values from [0-1). I also found randsym, which will give (0-1). Is there a way to use these for a range of values (random within 0-5), or am I stuck doing a loop with set's and the perl rand($range); standard?
Thanks in advanced.