Ask a Question related to ASP Database, Design and Development.
-
Bill Morrison #1
Seed being cached when using Rnd from asp
Soloution:
1. Pass random number in querystring to results page.
2. On results page pass this random number in the string to the Access query
3. In the Access query Order By like this:
ORDER BY Rnd((Table.ID-[@varRandomNumber]));
Bill Morrison Guest
-
Cached query
I have got this query <CFQUERY NAME="GetImportData" DATASOURCE="ExcelNordic" USERNAME="#Application.SQLUserName#"... -
Cached Page
Hi, I've turned off alle Cache-settings in CF-Admin and deleted all cfclasses-files. BUT I still get old files and the files I've got are 1... -
#25007 [Asn->Csd]: rand & mt_rand seed RNG every call
ID: 25007 Updated by: sniper@php.net Reported By: dcowgill at mail dot communityconnect dot com -Status: ... -
#25007 [Opn->Asn]: rand & mt_rand seed RNG every call
ID: 25007 Updated by: iliaa@php.net Reported By: dcowgill at mail dot communityconnect dot com -Status: Open... -
Accessing the Seed databse
"Ken Endeley" <kenendeley@lycos.com> wrote in news:3e19e8d0$0$1407$8e9e3842@news.atx.net: Try smarter, not harder. -
Ray at #2
Re: Seed being cached when using Rnd from asp
What?
Ray at work
"Bill Morrison" <bmorrison@whiteimage.com> wrote in message
news:dadd3bb8.0402110731.17741d2a@posting.google.c om...query> Soloution:
>
> 1. Pass random number in querystring to results page.
> 2. On results page pass this random number in the string to the Access> 3. In the Access query Order By like this:
>
> ORDER BY Rnd((Table.ID-[@varRandomNumber]));
Ray at Guest
-
Bob Barrows [MVP] #3
Re: Seed being cached when using Rnd from asp
Bill Morrison wrote:
Uuuummm ... thanks .... I guess ...> Soloution:
>
> 1. Pass random number in querystring to results page.
> 2. On results page pass this random number in the string to the
> Access query
> 3. In the Access query Order By like this:
>
> ORDER BY Rnd((Table.ID-[@varRandomNumber]));
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Bob Barrows [MVP] Guest
-
Ken Schaefer #4
Re: Seed being cached when using Rnd from asp
You are talking about the seed being cached by Jet, not by ASP. Nothing to
do with ASP.
Cheers
Ken
"Bill Morrison" <bmorrison@whiteimage.com> wrote in message
news:dadd3bb8.0402110731.17741d2a@posting.google.c om...
: Soloution:
:
: 1. Pass random number in querystring to results page.
: 2. On results page pass this random number in the string to the Access
query
: 3. In the Access query Order By like this:
:
: ORDER BY Rnd((Table.ID-[@varRandomNumber]));
Ken Schaefer Guest



Reply With Quote

