Create random numbers without repeat

Get help using Construct 2

Post » Sun Nov 11, 2012 3:26 pm

I have a ball that is created every 1 sec. and I would like that the numbers on the balls don't repeat.
The numbers are:
int(random(2,40))

How can I do that????
B
3
Posts: 12
Reputation: 699

Post » Sun Nov 11, 2012 3:35 pm

Try this plugin, you could even assign the weight of each number.
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

Post » Sun Nov 11, 2012 5:15 pm

The capx doesn't open. There is a missed plugin. :(
B
3
Posts: 12
Reputation: 699

Post » Mon Nov 12, 2012 12:45 am

@Tatiana Conde

You need download this plugin. The download link is at the top of this post.
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

Post » Mon Nov 12, 2012 12:58 am

I got the "function" plug in that was missed. But I don't know how to makes its work on my project.

I just want to not repeat my numbers. They are a math expressions.
B
3
Posts: 12
Reputation: 699

Post » Mon Nov 12, 2012 9:20 am

@Tatiana Conde

This Capx was to generate 10 numbers from 2 to 40 without repeating. (You need to use int() to transfer pattern string to number if necessary)
You need to download patterngen plugin again.rexrainbow2012-11-12 09:24:29
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019


Return to How do I....?

Who is online

Users browsing this forum: CavalierBubble, Evanetot and 27 guests