Forcing the Math.random function to return 0 in tests