Allow loading in nodejs and browserify.

The tests are there simply to ensure loading works, and do not actually
test the random functionality itself.