fortypoundhead.com

ASP Random Number

Nick asked this question on 11/23/2012. It has been viewed 496 times, and is currently unresolved.

What would be the code to generate a random number between such as 1 - 5?

Keywords:

Answer from dwirch on 11/23/2012

<%

Randomize Timer

intMin=1
intMax=5

intRandom=Int(rnd(1)*intMax)+intMin

%>

Reference:http://www.fortypoundhead.com/showcontent.asp?artid=23621



Recent Forum Posts

Malicious IP Checker Companion Tool
dwirch posted on August 12, 2017 at about 20:24 in Site News

Job Spammer: Steve Adams
dwirch posted on August 8, 2017 at about 7:44 in Spammers

New security implemented
dwirch posted on August 8, 2017 at about 6:43 in Site News

New security implemented
dwirch posted on July 23, 2017 at about 6:58 in Site News

Fold Code Manager into main KB?
VB6Boy posted on July 22, 2017 at about 14:42 in Site News

Fold Code Manager into main KB?
dwirch posted on July 22, 2017 at about 14:41 in Site News