ASP Random Number

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

Disapprove Delete

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

Keywords:

Answer from dwirch on 11/23/2012

Disapprove Delete

<%

Randomize Timer

intMin=1
intMax=5

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

%>

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


Code Links