I'm trying to create a php page that creates a random number and then redirects to another page based on that number.

So if the random number is 1, the redirect.php redirects to www.google.com,
if it is 2 then it redirects to www.yahoo.com etc.

I've tried this and failed many times.

Thanks.