Advertisement
cookertron

random grid

Dec 23rd, 2021
946
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.10 KB | None | 0 0
  1. import random
  2.  
  3. grid = {(x, y) : random.randint(0, 3) for y in range(4) for x in range(4)}
  4.  
  5. print(grid)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement