Hi, I have a script that look like this <? $ACC=user1; $PASS=pass1; ?> PHP: I would like the system randomly choose user2, user3, user4, etc.. into $ACC and also pass2, pass3, pass4, etc.. into $PASS at the same time. May i know how can i do that ?
Erm, i don thinkg that's what i want. How can i match pass1 to user1 and pass2 to user2 and etc etc.. while the system will pick $ACC by random ?
Just call rand once, store it in a variable and use that variable, instead. Something like: $random_number = rand(); $acc = 'user' . $random_number; $pass = 'pass' . $random_number; Be sure to start using quotes around your strings... you'll end up in a world of strange bugs if you don't.