Mathematical Functions: Random Functions

## rnd, birnd

**rnd**(x) (init- or control-rate only)
**birnd**(x) (init- or control-rate only)

### Description

Where the argument within the parentheses may be an expression. These value converters sample a global random sequence, but do not reference **seed**. The result can be a term in a further expression.

### Performance

**rnd**(*x*) – returns a random number in the unipolar range 0 to *x*.

**birnd**(*x*) – returns a random number in the bipolar range -*x* to *x*. **rnd** and **birnd** obtain values from a global pseudo-random number generator, then scale them into the requested range. The single global generator will thus distribute its sequence to these units throughout the performance, in whatever order the requests arrive.

### Author

Barry Vercoe

MIT

Cambridge, Massachussetts

1997

Mathematical Functions: Random Functions