0x7ffffff is RAND_MAX defined [here](https://github.com/kripken/emscripten/blob/incoming/system/include/libc/stdlib.h#L77)

It should be `%` actually, but `&` is faster for this specific value.