Thread: Random Numbers
View Single Post
  #5   Spotlight this post!  
Unread 18-01-2004, 20:57
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Random Numbers

Quote:
Originally Posted by Dave Flowerday
In C (and C++), function calls are case sensitive. Change "Rand()" to "rand()" and you should be all set.


Whenever you need to call a function, you need to include the parentheses, even if there aren't any arguments. So your code should look like:
Code:
pwm01=pwm03=Random();
pwm02=pwm04=Random();
THANK YOU!! It compiles fine now.


P.S.- if you dig hard enough, there is an option in the compiler to turn off case-sensitivity but that would be nonconforming oh, well.