How do I fill an array list with random unic numbers?

Get help using Construct 2

Post » Thu Jul 09, 2015 10:45 am

well,

i have created an array wich list 20 objects.

i have a second array wich must list randomly 10 of this objects, each one must be unic.

this image show this second array list.

Image

the problem is how to make this list composed by only unice random numbers ?
because actually they can be fund multiple times
Image
B
16
S
3
Posts: 104
Reputation: 1,404

Post » Thu Jul 09, 2015 1:05 pm

Image
B
64
S
23
G
7
Posts: 1,481
Reputation: 10,823

Post » Thu Jul 09, 2015 2:16 pm

thanks korbaach,

i fund a manually comparaison to do the same as containning value wich i didn't seen .
your's is perfect!
B
16
S
3
Posts: 104
Reputation: 1,404


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot], leandrogenske, R0J0hound and 9 guests