Fix a random seed of zero being ignored

This was caused by zero being interpreted as false.
Hurray loose typing! Hurray Javascript! :D