Computer Science Canada counted loop and random number [help] |
Author: | ella [ Mon Oct 12, 2009 7:13 pm ] | ||
Post subject: | counted loop and random number [help] | ||
What is it you are trying to achieve? to determine how many values of seven was created in random numbers from 1 to 20. What is the problem you are having? maybe something wrong with my codes and/or i'm missing some codes. Post any relevant code (You may choose to attach the file instead of posting the code if it is too long) this is what i got so far:
Please specify what version of Turing you are using Turing 4.1.1 |
Author: | Insectoid [ Mon Oct 12, 2009 7:44 pm ] | ||
Post subject: | RE:counted loop and random number [help] | ||
This needs to be inside the for loop |
Author: | Tony [ Mon Oct 12, 2009 7:46 pm ] |
Post subject: | RE:counted loop and random number [help] |
You probably want to check if the random number was 7 more than just once. |
Author: | Zren [ Mon Oct 12, 2009 7:51 pm ] |
Post subject: | Re: counted loop and random number [help] |
Also don't forget to initialize the variable sevens. aka set it to zero in the beginning. |