does anybody now how to set rand max so u get a random number between 0 and 10?
Just mod it by your max value plus 1:
[fixed]int i = rand() % 11;
//i>=0 && i<=10[/fixed]
Dan East
A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.