A port of the Python `random` module to JavaScript