Quote:
Originally Posted by artdutra04
The only downside to this algorithm is that there is no rand() function of any kind on our controller.
The best way I've found to generate "random" numbers on Vex/FRC controllers is to start a timer at the beginning of your program, and whenever you need a random number get the modulus of the timer value when divided by a number of your choice.
|
Well, problem solved. The algorithm stands!