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: 106
Reputation: 1,408

Post » Thu Jul 09, 2015 1:05 pm

B
66
S
24
G
7
Posts: 1,515
Reputation: 11,041

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: 106
Reputation: 1,408


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 20 guests