how do i make a php random number generator?

av3ng3dwarri0r

New member
ok what i want to do is make a random number generator in php and use it to tell me what movie to watch. i was thinking i could use the function:

print rand(1, 134);

to generate the number but im not sure how to link it to the movie title. could i do it as;

function(movie_gen);
$1="Adventureland"
...
$134="Zombieland"
print rand($1, $134);

ok so as you can see im not real great at php lolz so any help will be great thx
also i need to put a button in there to generate it
 
Back
Top