moved random_generator to util namespace