Don't forget to call : import random try: import random print random.randint(2,8) print random.random()
good luck pujo On 6/4/05, Xiaoxia Xu <[EMAIL PROTECTED]> wrote: > Hello, > > I tried to use a Python library module random() to generate some > noise to my data. But the interpreter gave me an error > message saying NameError: name 'random' is not defined. > I thought this error is because I don't have the pertinent > library included. Could anyone tell me how can I get this > to work? > > Many thanks, > > Ellen > > _______________________________________________ > Tutor maillist - [email protected] > http://mail.python.org/mailman/listinfo/tutor > _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
