Hi i'm creating a program in vb that can generate random numbers. the thing is i want to lessen the chance to appear the highest number.
for Example i have numbers from 1-10 (in ramdom)
Number 10 the chance to appear is 10%
Number 9 the chance to appear is 20%
Number 8 the chance to appear is 30%
here is my sample code.
Dim R1 As New Random
Dim d1result1 As Integer = R1.Next(1, 10)
Label2.Text = d1result1.ToString
I want 1,2,3,4,5 appears more often
and 6,7,8,9,10 has less chance to appears.