Hi,
I am using the Random module to randomly pick the number 0 or 1, then place it to a variable. However, when I run the module, it produces the same outcome 0.
If I change the range from 0 - 10, it will pick a random number between that range.
Any clue as to why choosing the range 0 to 1 seems to always produce the outcome 0? I must have run this module over 100 times and the outcome is always 0. I simply want it to produce 0 or 1 at random and place it to the variable that I have assigned to it.
Thanks.
I am using the Random module to randomly pick the number 0 or 1, then place it to a variable. However, when I run the module, it produces the same outcome 0.
If I change the range from 0 - 10, it will pick a random number between that range.
Any clue as to why choosing the range 0 to 1 seems to always produce the outcome 0? I must have run this module over 100 times and the outcome is always 0. I simply want it to produce 0 or 1 at random and place it to the variable that I have assigned to it.
Thanks.