irand
Create an integer random number, uniformly distributed in the interval [1, #p1]
Syntax
y = irand ( n )
y = n.irand ( )
Inputs
| Argument | Type | Description | Unit |
|---|---|---|---|
n | scalar | the upper limit of the range | n/a |
Outputs / Return Value
y:yis an integer random number between 1 andn
See Also
Review Status
- Legacy parameter naming does not exactly match current engine metadata and should be reviewed manually.