Mahdipunisher
Member
Hello friends
I want to use a random number in my program without repetitions, giving it a number from 1 to 10, each button is assigned a number, but there are no repetitions
Can anyone help me?
For example
r=rnd(1,10)
lbl1.text=8
lbl2.text=2
lbl3.text=5
lbl4.text=1
lbl5.text=3
lbl6.text=10
lbl7.text=7
lbl8.text=6
lbl9.text=4
lbl10.text=9
I want to use a random number in my program without repetitions, giving it a number from 1 to 10, each button is assigned a number, but there are no repetitions
Can anyone help me?
For example
r=rnd(1,10)
lbl1.text=8
lbl2.text=2
lbl3.text=5
lbl4.text=1
lbl5.text=3
lbl6.text=10
lbl7.text=7
lbl8.text=6
lbl9.text=4
lbl10.text=9