changed back the random range, and removed the test code