Advertisement
Guest User

runrandom.py

a guest
Feb 17th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. import glob
  2. import random
  3. import os
  4. games = glob.glob("./roms/*.zip")
  5. game = games[random.randint(0,len(games))]
  6. print ("mame " + game)
  7. os.system(r"mame " + game)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement