> > It all works up until I need to print five randomly chosen numbers from > the range [1,n]. It tells me that random is not defined.
You need to put : import random in your program before doing: y = random.randrange(1,n) or alternatively use: from random import * and call the function as follows: y = randrange(1,n) Regards, -- Michael Connors
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor