GameRandom.NextDiscrete function. Testing framework.