dim generator as new Random()
dim rollamount as integer
dim _random as new Random(1)
console.writeline("Press Y to roll the dice")
answer = console.readline()
if answer = "Y" or "y" then
console.writeline("How many times would you like to roll the dice?")
rollamount = console.readline()
dice1 = _random.Next(1,10)
console.writeline("Your total is " & total)
dice2 = generator.Next(1,10)
console.writeline("The computers total is " & total2 )
console.writeline("You rolled the highest")
else if total2 > total then
console.writeline("The computer rolled the highest")
else if total = total2 then
console.writeline("Both are equal")
console.writeline("Would you like to roll again? Y/N ")
reply = console.readline()
amount = amount + rollamount
average = average + total
average2 = average / rollamount
console.writeline("You rolled the dice " & amount & " times")
console.writeline("The average for you was " & average2 )