2010/1/4 simone gabbriellini <simone.gabbriell...@gmail.com> > sto cercando di estrarre casualmente numeri dispari in un intervallo da 0 a > 100.
from random import choice choice(range(1,100,2)) Ciao, Antonio -- http://ThinkCode.TV - Screencast e videocorsi di programmazione http://antoniocangiano.com - Zen and the Art of Programming http://math-blog.com - Mathematics is wonderful! Follow me on Twitter: http://twitter.com/acangiano Author of "Ruby on Rails for Microsoft Developers" (Wrox, 2009)
_______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python