Jump to content

Random


Sunamena

Recommended Posts

I want to include something random by using php. How do i do this? I am very new to php.
I will use it to display a random image, each has it's own unique url.

 

 

Example:



Hello, your lucky color is X.

 

 

 

X is randomly chosen from a list and could be:

Red
Orange

Green
Blue
Red
Pink

 

 

How would i do this?


Thanks in advance =D

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...