URnd Function

URnd generates a list of different random numbers


Function

The function URnd generates a list of different random numbers ranging from 0 to the specified maximum value


Syntax

URnd (Len, Max)

URnd (Len, Min, Max)

URnd ( [Max, Max, Max, Max] )

Example

URnd (Len, Max)

Returns a list of the specified length Len, with different, random integers in the range greater than or equal to zero and less max.

URnd (8, 12) = 5 10 8 4 6 9 0

URnd (Len, Min, Max)

Returns a list of the specified length Len, with different, random integers in the range larger or equal to Min and less Max .

URnd (8, 10, 25) = 19 17 21 14 18 16 11 23

URnd ( [Max, Max, Max, Max] )

Returns a list in the length of the argument, with different, random integers in the Range greater than or equal to zero and less than max of the corresponding element

URnd ([5, 5, 5, 22, 22, 22]) = 3 4 1 18 2 13

Additional Information

  • Rnd for lists with one-time random numbers
  • Rndf for floating-point random numbers