Random math op

Benjamin Kaplan benjamin.kaplan at case.edu
Sat Oct 2 19:01:19 CEST 2010


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
>



More information about the Python-list mailing list