Revert "Fix bug in stat_utils.js where random numbers could not be generated"

This reverts commit 37f2f6505e02b98c25955a729b51cac4febdaad5.