Skip to content

Instantly share code, notes, and snippets.

@DGrady
Created October 29, 2019 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DGrady/836b95551162e48b37b14a0ef145ee3d to your computer and use it in GitHub Desktop.
Save DGrady/836b95551162e48b37b14a0ef145ee3d to your computer and use it in GitHub Desktop.
Randomly generate a seed for Numpy
# To reproduce a random sample, we need a fixed seed.
"{:_}".format(np.random.randint(np.iinfo(np.uint32).max))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment