1 of 1 people found this helpful
Are you using Linux AMD_64?
Looking at this forum it seems that others using Arduino have this problem: http://forum.arduino.cc/index.php/topic,3129.0.html
I am running Ubuntu 12.04 and I cannot use the random() function with parameters.
Here's a hack to help you around the bug. This code will generate random numbers between small and big-1
int small = 0;
int big = 10;
randNumber = small + (random() % (big - small));