[thelist] Strange problem with ASP (random)

Bob Fowler bob at rjf.ca
Sat Jan 19 22:28:40 CST 2002


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.

----- Original Message -----
From: "Chris Anderson" <ckanderson at powersurfr.com>
To: <thelist at lists.evolt.org>
Sent: Saturday, January 19, 2002 10:30 PM
Subject: [thelist] Strange problem with ASP (random)


> Hey everyone,
>
> Im having the strangest problem with ASP, and am hoping that someone in
here
> can help shed some light on this for me.
>
> Anyway, if you look at www.photokyo.com and refresh the page, you can see
> that on the right side where the bookstore is, it brings up a random image
> each time you refresh.  It works!
>
> Where the problem lies is on the other pages.  They always bring up the
same
> darn image, no matter how many times you reload it.  Its only on the main
> page where its bringing up different images each time.
>
> I am using an include for that part, so its the exact same code on the
main
> page as it is on the other pages, so thats why it doesnt make sense to me.
>
> Anyone else ever seen a problem like this?  I dont know what the heck the
> problem is.
>
> Christian Anderson
>
> Photokyo - Digitally capturing the best Tokyo has to offer!
> http://www.photokyo.com
>
>
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt !
>






More information about the thelist mailing list