games: Introduce a simple puzzle game
[lcapit-junk-code.git] / wb-remove-rand
blob33fdcc6c37b55e766e79ccdf1163e013d9151dc4
1 #!/usr/bin/python
3 import sys, random, commands
5 max = int(sys.argv[1])
7 files = commands.getoutput('find /wb/ -type f').splitlines()
8 amount = len(files) - 1
10 for i in range(max):
11 print 'removes %s' % files[random.randint(0, amount)]
13 sys.exit(0)