random number program
noizebot
Posts: 3
Hello
Im learning bs2 and trying to write a random number program using the button. I am still a novice and having trouble with writing the code.
The random numbers generated are Bytes but I only need the numbers to be within 1 thru 50
I would also like it to label which numbers are prime. When ever the button is pressed it will generate a new random number sequence.
Is there any material online I could look at to help me get an idea how to write the code for this:
Im learning bs2 and trying to write a random number program using the button. I am still a novice and having trouble with writing the code.
The random numbers generated are Bytes but I only need the numbers to be within 1 thru 50
I would also like it to label which numbers are prime. When ever the button is pressed it will generate a new random number sequence.
Is there any material online I could look at to help me get an idea how to write the code for this:
Comments
Instead of going into a panic with the "zener diode" idea there, you could use a photocell in conjunction with RCTIME.