Reply to Re: Random function: Helpo-pleaso
If you don't have an account, just leave the password field blank.
From the old dinkc reference:
"int random(max, plus_this);
Random(10,1) would return a number between 1 and 10. Random(5,0) would return a number from 0 to 4. Simular to how C does it."
Check out some of the original Dink source files (e.g. s2-wand.c has a lot of randomization going on) for real examples of how to do it.
"int random(max, plus_this);
Random(10,1) would return a number between 1 and 10. Random(5,0) would return a number from 0 to 4. Simular to how C does it."
Check out some of the original Dink source files (e.g. s2-wand.c has a lot of randomization going on) for real examples of how to do it.






