Hi,
I am looking to generate 10 unique random numbers - most likely in an array. Then, I would like to use the 10 unique random numbers and set random values to them. For example, if one random number is "4" then the value for "4" would be "Hello" and "Hello" would be echoed.
What I am really trying to do is create a website where I can have random reference quotes from clients display on my website in 10 different places.
Right now, I have 10 different locations on my website where the random quotes will be displayed. They are named "(RANDOM1}" "(RANDOM2}" "(RANDOM3}" and so on.
I am very much aware of how to generate 10 random numbers using the "rand" function. I am aware that i could then use "if" statements to assign the various values but I do not want a quote to display on a page twice.
I found various ideas on the subject, but I am having understanding some of them - especially arrays.
Any ideas? Thank you.