use random.Random() insteaf of using random directly