Skip to content

Instantly share code, notes, and snippets.

@ChaiBapchya
Created December 6, 2018 05:43
Show Gist options
  • Save ChaiBapchya/ab8fbf5222cb0e18066c09d0fdabcf70 to your computer and use it in GitHub Desktop.
Save ChaiBapchya/ab8fbf5222cb0e18066c09d0fdabcf70 to your computer and use it in GitHub Desktop.
Generating random integers using numpy
import numpy as np
for i in range(100000):
a=np.random.randint(low =0, high=9223372036854775807 ,dtype='int64')
with open('run2_numpy.txt', 'a') as the_file:
the_file.write(str(a)+'\n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment