|
|
Forum moderator: bigblog |
uCoz Community Communication uCoz Discussions <?rnd(N)?> (rnd in if) |
<?rnd(N)?> |
Hi. Could anyone help me?
<?rnd(1)?> works - random number 0 to 1 But how do it do this?: <?if (<?rnd(1)?> = 0)?>do this<?else?>do this<?endif?> cause it doesnt work. Thanks a lot. |
Okey. Thanks.
<?if(rnd 1 = 0)?> do this 0<?else?>do this 1<?endif?> works! But how can i put exact text in exact random number, for example: <?if(rnd 3 = 0)?> do this 0 <?else... for 1 else for 2 else for 3?? Thanks!! |
| |||
| |||