[thelist] Strange problem with ASP (random)

Chris Blessing webguy at mail.rit.edu
Sat Jan 19 22:30:03 CST 2002


The strange thing is that the image is randomized each time on the homepage,
but not anywhere else...  code samples would be good.

Chris Blessing
webguy at mail.rit.edu
http://www.330i.net

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Bob Fowler
Sent: Saturday, January 19, 2002 11:30 PM
To: thelist at lists.evolt.org
Subject: Re: [thelist] Strange problem with ASP (random)


Chris,

I assume you are using the "rnd" function to choose the image?

If so, you need to use the "randomize" function. This re-seeds the rnd
function with a new seed, usually from the system timer.  If you do not use
this function with "rnd", you will end up using the same seed value each
time it runs (and getting the same result time and again).

Bob.





More information about the thelist mailing list