2020-10-06 13:13:20 +02:00
|
|
|
import random
|
|
|
|
|
2020-10-06 17:04:42 +02:00
|
|
|
num_iterations = 999999
|
2020-10-06 13:13:20 +02:00
|
|
|
|
|
|
|
with open("testdata", "w") as file:
|
|
|
|
# Write the number of lines to expect
|
2020-10-06 17:04:42 +02:00
|
|
|
file.write("%s" % num_iterations)
|
2020-10-06 13:13:20 +02:00
|
|
|
|
|
|
|
# Write lots of random numbers
|
|
|
|
for i in range(0, num_iterations):
|
|
|
|
# Between 0 and the maximum of uint32
|
2020-10-06 17:04:42 +02:00
|
|
|
file.write("\n%s" % random.randint(0, 4294967295))
|