Random math op
Benjamin Kaplan
benjamin.kaplan at case.edu
Sat Oct 2 13:01:19 EDT 2010
More information about the Python-list mailing list
Sat Oct 2 13:01:19 EDT 2010
- Previous message (by thread): Random math op
- Next message (by thread): Random math op
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
use the add, sub, div, and mul functions in the operator module. Stick them in a list, and then randomly pull one out. On Sat, Oct 2, 2010 at 12:53 PM, Hugo Léveillé <hugol at fastmail.net> wrote: > Hi > let say I have a simple math apps that randomize number X and number Y. > How would you randomize between '/','*','+', and '-' for that math > operation > > > -- > Hugo Léveillé > hugol at fastmail.net > > -- > http://mail.python.org/mailman/listinfo/python-list >
- Previous message (by thread): Random math op
- Next message (by thread): Random math op
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list