You could extend that random functionality and be sure that the same images aren't 
duplicated as follows:

1) Generate a new random number
2) Check for that number in a session (or cookie) variable.
3) If the number exists in the list, generate a new number and keep doing this until 
the number doesn't exist in the list.
4) Append a session (or cookie) variable with the new random number.

I'm not sure what affect this would have on processing time, but I doubt it would add 
much overhead.

--------------------------------------------------------------
Mark Warrick
Phone: (714) 547-5386
Efax.com Fax: (801) 730-7289
Personal Email: [EMAIL PROTECTED]
Personal URL: http://www.warrick.net 
Business Email: [EMAIL PROTECTED]
Business URL: http://www.fusioneers.com
ICQ: 346566
--------------------------------------------------------------


> -----Original Message-----
> From: Les Mizzell [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 19, 2000 1:13 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [CF-Talk] Random Images
> 
> 
> 
> > <cfset imagenum = RandRange(1,7)>
> >
> > <cfoutput>
> > <img src="#imagenum#">
> > </cfoutput>
> 
> 
> Yes, figured this out after actually THINKING some. Much more compact!
> 
> Still having the same problem as before though.  I never see anything past
> the first three images. Num 4 through 7 NEVER come up.  Can't 
> figure out why
> though...
> 
> 
> 
> 
> Les Mizzell
> ***********
> Some people say I'm too apathetic.
> But why should I care?
> 
> ------------------------------------------------------------------
> ------------
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> To Unsubscribe visit 
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf
_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the 
body.

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/cf_talk or send a message 
to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to