We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I am creating a program where one number is randomly chosen and is printed to serial. The code i am using for some reason always gives me a reading of 748. I know that random() will create a random number but it dosn’t stop creating them.this is the code i have.
randomSeed(0);
int Number = int(random(1024));
println(Number);
Answers
randomSeed does that
this works:
Thanks!! :) This is part of a bigger program for school and it now works.
;-)
Java naming convention prefers lower camel case for variables: