Returns random numbers from [low, high). The random numbers are uniformly distributed.
Parameters: low = The beginning of the range of the distribution. high = The end of the range of the distribution. size = The size of the array.
1 double low = -100.0; 2 double high = 100.0; 3 ulong size = 20; 4 5 auto array = randomArray(low, high, size); 6 assert(array.length == size); 7 foreach(double e; array) { 8 assert(low <= e && e < high); 9 }
See Implementation
Returns random numbers from [low, high). The random numbers are uniformly distributed.
Parameters: low = The beginning of the range of the distribution. high = The end of the range of the distribution. size = The size of the array.