siccome devo fare una cosa fissa..,stavo provando cosi..,ma ottengo valori doppi
codice:
Dim rand As New Random(CInt(Date.Now.Ticks And Integer.MaxValue)) Dim TestadiSerie1 As Integer = rand.Next(1, 3) t1.Text = TestadiSerie1.ToString Dim TestadiSerie2 As Integer = rand.Next(1, 3) If TestadiSerie2 = TestadiSerie1 Then TestadiSerie2 = rand.Next(1, 3) t2.Text = TestadiSerie2.ToString End If Dim SecondaFascia1 As Integer = rand.Next(3, 5) n1.Text = SecondaFascia1.ToString Dim SecondaFascia2 As Integer = rand.Next(3, 5) n2.Text = SecondaFascia2.ToString
tipo dovrei ottenere l'accopiamento 1-3 2-4 o 1-4 2 -3, però capita che si ottiene anche 1-1 o 2-2, sto facendo solo delle prove... t1,t2,n1,n2 sono delle label dove sparo i valori