[SIZE=4]Hello
I have a question about array
if I have the following array for example:
letters=new Array()
letters[0]=“a”
letters[1]=“b”
letters[2]=“c”
how can I pick a random element from above array without repetition?
If I use random.math() function , I will get a random element but with repetition.
to explain my idea in more details:
i have button(b) and a dynamic text(t)… i want one and only one random&unique element from the array appears in the dynamic box(t) every time i press the button(b)
Note: I tried to use shuffle array that i found in some websites but the problem is that all elements(a,b,c) appear in the dynamic box in the same time.
i am really confused!
any help will be appreciated[/SIZE]