Gullanian wrote:
Using this code:
Randomize
'Get random number lngRandomNumber = int(rnd*118) + 1
Problem is, the results don't seem to be random. The code is looped 9 times, and the 9 results seem to have a predictable pattern.
Is this normal? Any better alternative?
|
Personally, I think you should create a function to randomise the number for you ... then call as needed

Here's one for you to help you too

<%
' Create a function to randomise a number
Function RandomNumber(intHighestNumber)
Randomize
RandomNumber = Int(intHighestNumber * Rnd) + 1
End Function
%>
Then call in the script
<%= RandomNumber("118") %>
Hope that helps dude.
Chris