I have a little script that puts a random number between 0 and 25
Is this a good script to get a random number or not?
no I'm will to put in the page title and somewhere on the page a random username random link and a random message (all with the same number)
I was thinking for the title:
That could become $us0 wich will result in golles, but it doesn't the page title would be "Join $us1"
So can someone tell me what I'm doing wrong?
and if the random code is good?
thanks in advance!
//golles
| Code: |
|
<? srand(time()); $random = (rand()%26); ?> |
Is this a good script to get a random number or not?
no I'm will to put in the page title and somewhere on the page a random username random link and a random message (all with the same number)
I was thinking for the title:
| Code: |
|
<title>Join <?php echo "$" . "us" . $random ?></title> |
That could become $us0 wich will result in golles, but it doesn't the page title would be "Join $us1"
So can someone tell me what I'm doing wrong?
and if the random code is good?
thanks in advance!
//golles
