Expr::random limited to 16 bits?

Owen Green's icon

Hello,

Max 4.5.7
OS 10.3.9

The random function in an [expr] seems to be limited to signed 16-bit operation, after which it wraps. Is this by design?

Expected behaviour: more range, in common with the rest of the environment.

Max Patch
Copy patch and select New From Clipboard in Max.

Steps to reproduce:

workarounds:
use built in random object, or litter, or scale outputs, or...