i want to produce four random numbers between 1 and 6, drop the lowest number, then add the three remaining numbers.
example1
1, 3, 5, 6,
drop 1
total=14
example2
2, 2, 3, 5
drop 2
total=10
i am having truble figuring out how to drop the lowest. here is what i have written so far.
<%
Response.Buffer = True
randomize()
str1=Int(6 * rnd + 1)
str2=Int(6 * rnd + 1)
str3=Int(6 * rnd + 1)
str4=Int(6 * rnd + 1)
response.write("str1: <b>" & str1 & "</b><br>")
response.write("str2: <b>" & str2 & "</b><br>")
response.write("str3: <b>" & str3 & "</b><br>")
response.write("str4: <b>" & str4 & "</b><br>")
response.write("strtotal: <b>" & strtotal & "</b>")
%>