On Thu, May 15, 2008 at 3:00 AM, Guess?!? <[EMAIL PROTECTED]> wrote: > Hello All, > > I am importing module "random" and it is giving me this error > below AttributeError: 'module' object has no attribute 'randrange'
You have named your program random.py. The import finds your program rather than the random module. Rename your program and delete the associated .pyc file and it will work. Kent _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor