It works, but if using the default generator, _stdlib_random would be called repeatedly, instead of only once.
_stdlib_random