How to create random number?

# Thread: How to create random number?

1. LC
Junior Member
Join Date
Dec 1969
Posts
23

## How to create random number?

Hi, anyone knows how to create a ten digits random number in ASP? I need to assign a unique id to a customer when the customer come to our site at first time.<BR><BR>Thanks<BR>LC

2. Senior Member
Join Date
Dec 1969
Posts
148

## RE: How to create random number?

To produce random integers in a given range, use this formula: <BR><BR>Int((upperbound - lowerbound + 1) * Rnd + lowerbound)<BR>

3. LC
Junior Member
Join Date
Dec 1969
Posts
23

## RE: How to create random number?

Thanks a lot.

4. Senior Member
Join Date
Dec 1969
Posts
148

## RE: How to create random number?

Woops. I didn&#039;t see that you wanted 10 digits...read too fast. Looking for a way now...

5. Senior Member
Join Date
Dec 1969
Posts
148

## RE: How to create random number?

Did you ever find a way to do this?? I can&#039;t think of a good way to do it....sorry

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•