I have a simple array created for a Die roller. I want to roll 5 six sided dice, and remove the lowest 2 values. What code would help me do this. here is my basic code for the 5 dice
Public Partial Class MainForm Public Sub New()
Me.InitializeComponent()
End Sub
Sub Button1Click(sender As Object, e As EventArgs)
Dim d61 as Integer
Dim d62 As Integer
Dim d63 As Integer
Dim d64 As Integer
Dim d65 As Integer
d61 = Int((6 - 1 + 1) * Rnd) + 1
d62 = Int((6 - 1 + 1) * Rnd) + 1
d63 = Int((6 - 1 + 1) * Rnd) + 1
d64 = Int((6 - 1 + 1) * Rnd) + 1
d65 = Int((6 - 1 + 1) * Rnd) + 1
Dim Dicerolls(4) As Integer
Dicerolls(0) = d61
Dicerolls(1) = d62
Dicerolls(2) = d63
Dicerolls(3) = d64
Dicerolls(4) = d65