i am trying to generate a random none repeated integers
i do something like following
is there a better approach to do a randomize integers ?
i do something like following
B4X:
Sub randnumbers(Upperange As Int) As Int
Dim d As Int
d = Rnd(0, Upperange)
Do While d < 1002
d = Rnd(0, Upperange)
Loop
Return d
End Sub
is there a better approach to do a randomize integers ?