Creation of equivalent random number generators.  It was noted that the JS version was more precise (last 2 or 3 digits were rounded in PHP).