What will this rand generate?

Can some one help me what will AJ[i][j] =(( rand() % 20 ) + 1) * 100 ; generate and how does generation take place?


closed account (j3Rz8vqX)
It will create a random value.

Then mod it by 20; limiting its value to 0-19.

Then add 1; increasing its limit to 1-20.

Then multiplying by 100; modifying its value to 100-200.

Then assigning the value to <Unknown type - Array> AJ[i][j].

Where "i" is unknown and "j" is unknown.
Topic archived. No new replies allowed.