View Single Post
Old 06-28-2011, 02:22 AM   PM User | #2
jmrker
Senior Coder

 
jmrker's Avatar
 
Join Date: Aug 2006
Location: FL
Posts: 2,765
Thanks: 29
Thanked 453 Times in 447 Posts
jmrker will become famous soon enough
Question Huh? ...

Quote:
Originally Posted by oliarcher View Post
Hi, I'm currently trying to incorporate several random link generators on one page, each with different links to be directed to. However, at the minute all the links just direct me to the URLs of the most recent random link to be created. If someone could point me in the right direction to fixing this that would be great! The code I am currently using is:

...
Your request is not very clear.

You only have 3 possible links to go to randomly.
With so few links to go to, you will have a 33% chance of going to the same link each time you click the link. That is just the nature of the random function.

Are you trying to randomly go to a different link when you click on one of the 3 links available? Is that what you are trying to accomplish? Are you trying to guarantee that the 3 links will go to a random URL one time before repeating a random sequence again?
jmrker is offline   Reply With Quote