-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You really only need to call it once, the previous random number is
used as the seed for the next, so randomize sets you on a new path of
random values each time. As long as the initial seed is different. I
guess you could call it each time to prevent cases where they are
not, but I doubt you will have issues.

Ben Timby
Webexcellence
PH: 317.423.3548 x23
TF: 800.808.6332 x23
FX: 317.423.8735
[EMAIL PROTECTED]
www.webexc.com 

- -----Original Message-----
From: Shawn Berg [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, July 25, 2002 12:03 PM
To: ActiveServerPages
Subject: RE: Random numbers


You must call RANDOMIZE first so create a random seed. Call this each
time
before you want a new random number.

Shawn



- -----Original Message-----
From: Babiker [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 3:00 PM
To: ActiveServerPages
Subject: Random numbers


I USED

Response.write Rnd()
Response.write Rnd
Response.write Rnd(1000)

But whenever I run it , I GET THE SAME NUMBER WHICH IS  .75549
WHAT IS WRONG
i SUPPOSE TO GET DIFFERENT NUMBERS WHEN EVER  RUN IT RIGHT

PLEASE HELP

- ---
You are currently subscribed to activeserverpages as:
[EMAIL PROTECTED]
To unsubscribe send a blank email to
%%email.unsub%%


- ---
You are currently subscribed to activeserverpages as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
%%email.unsub%%

-----BEGIN PGP SIGNATURE-----
Version: PGP 7.0.4

iQA/AwUBPUBo0/nby1cCm2Q8EQJj+wCePI93UieWVIx3SMdlSvSB3HAYZmQAmgLl
33f/PvoFvyiVOXzyK6A/aqh2
=ZJbn
-----END PGP SIGNATURE-----



---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to