I just wrote this to decide who's going to get the next round of coffee here
in the office.
Who knows it might be usefull to other people who also have endless
discussions on who is gonna get the coffee :)
cheers,
Guyon
coffee.py
-------------------------------------------------------------------------
# who's gonna get coffee? (tm)
#
# Guyon Moree 2003
import random
candidates = [ 'employee1','em ployee2','emplo yee3','employee 4' ]
print "%s is the chosen one!" % (random.choice( candidates))
in the office.
Who knows it might be usefull to other people who also have endless
discussions on who is gonna get the coffee :)
cheers,
Guyon
coffee.py
-------------------------------------------------------------------------
# who's gonna get coffee? (tm)
#
# Guyon Moree 2003
import random
candidates = [ 'employee1','em ployee2','emplo yee3','employee 4' ]
print "%s is the chosen one!" % (random.choice( candidates))
Comment