Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from random import randrange
- f = open('dots_linear.json','w')
- td_size = 500
- td = []
- for i in range(td_size):
- x = randrange(0,10000)
- y = randrange(0,10000)
- c = int (x >= y)
- td.append([x,y,c])
- f.write(str(td))
- f.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement