hi
i have question how can i Random numbers with out Repetition
i use this code and its show this error in Emluter
java.lang.arrayindexoutofboundsexception
now that I tried other codes such as
and still the same problem
i have question how can i Random numbers with out Repetition
i use this code and its show this error in Emluter
java.lang.arrayindexoutofboundsexception
B4X:
Dim x() as Boolean
i= rnd(1,20)
if x(i) = false then
'conition1
Else
x(i) = false
end if
now that I tried other codes such as
B4X:
Dim x() as string
i= rnd(1,20)
if x(i) = "false" then
'conition1
Else
x(i) = "false"
end if
and still the same problem