d-soldier wrote:
- Code: Select all
int n;
n=rand(2);
if (n==0)
{
INSERT PLAYSOUND #1 HERE
}
if (n==1)
{
INSERT PLAYSOUND #2 HERE
}
int n = rand(1.99999);
switch (n)
{
case 0:
INSERT PLAYSOUND #1 HERE
break;
case 1:
INSERT PLAYSOUND #2 HERE
break;
}
unsigned char n = rand(1.99999);
n=rand(2);
DilloDude wrote:I think it will be a number from 0 up to and including the number. I could be wrong, though.summer_goth wrote:Then it will always be a number between 0 and smaller than the number in brackets.
Users browsing this forum: No registered users and 1 guest