Created
December 6, 2018 05:43
-
-
Save ChaiBapchya/ab8fbf5222cb0e18066c09d0fdabcf70 to your computer and use it in GitHub Desktop.
Generating random integers using numpy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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