Skip to content

Instantly share code, notes, and snippets.

Last active July 6, 2020 10:54
What would you like to do?
import numpy as np
random_numbers = np.random.rand(int(2e8)).tolist()
def random():
return random_numbers.pop()
except IndexError:
raise IndexError("Out of random numbers; generate more next time.")
def randint(a, b):
return int(round((b-a) * random())) + a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment