All pastes #815154 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-12-13 20:46 UTC
rendered paste body
def initFunc():
    
    #Initialize the given words
    words = ["A", "A", "B", "B", "C", "C", "D", "D", "E", "E", "F", "F"]
    gameMaster = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,]

    while len(words)!=0:
        indexNum = random.randint(0,(len(words)-1))
        gameMaster[indexNum]= words[indexNum]
    
        del words[indexNum]
    return gameMaster