Hello!
I have this
<? srand(); $kvittensnummer= rand (1,10); ?>
It gives me "1" everytime I run the page, but I want a new random number between 1 and 10 every time.
Thanks in advance.
Klas
You need to set the rand first with something like
srand ((double)microtime()*1000000 );
this should work now