irand

Parent Previous Next

irand

y = irand ( n )
y = n.irand ( )

Create an integer random number, uniformly distributed in the interval [1, n]

arg

type

Description

Unit or Value scale

n

SCAL

the upper limit of the range


Outputs

  • y is an integer random number between 1 and n

Notes

Examples

See Also

rand | randperm

Created with the Personal Edition of HelpNDoc: Easily create iPhone documentation