# Use of Seeded Random Explanation?

For questions about using Classic.

### » Mon Dec 06, 2010 8:22 pm

Can someone tell me how to use a seeded random?

If I want to make a series of randomly placed nodes with a seeded random how would I go about that?
Follow me on Twitter @evgLabs
B
34
S
14
G
4
Posts: 251
Reputation: 4,074

### » Mon Dec 06, 2010 10:03 pm

As I recall Lucid's 's' plugin does that.

Edit: alternately, you could save the result of a regular random to an array, then load that.
Moderator
B
96
S
34
G
33
Posts: 3,007
Reputation: 27,921

### » Mon Dec 06, 2010 10:06 pm

I think I may recall another plugin that allows seeded random
but the S plugin has a seeded random function.
if you've heard legends about how hard s is to use, fear not
the math functions are just as simple as the built in construct one

you just use the Seed Random Action
choose a seed, and then the series of random values you generate afterward will be the same next time you use the same seed
come to think of it, I think the seeding may actually seed the regular construct random as well, but the random function in s let's you choose a range of two values, to simplify the process
Spriter Dev
B
103
S
22
G
12
Posts: 3,285
Reputation: 17,151

### » Mon Dec 06, 2010 10:16 pm

Check out the Perlin noise plug. It uses a seeded random which means if you set the seed to x number you will get the same output every time you use that number.
Plus it outputs to an array... basically every thing you need to create nodes at computer generated set positions.
B
178
S
50
G
206
Posts: 8,685
Reputation: 127,713

### » Tue Dec 07, 2010 12:15 am

Where is the S plugin? I can't find it.
Follow me on Twitter @evgLabs
B
34
S
14
G
4
Posts: 251
Reputation: 4,074

### » Tue Dec 07, 2010 2:07 am

[quote="YetAnotherSuperhero":4b4vymr0]Where is the S plugin? I can't find it.[/quote:4b4vymr0]
Here you go.
Moderator
B
115
S
41
G
20
Posts: 1,586
Reputation: 19,196

Return to Help & Support using Construct Classic

### Who is online

Users browsing this forum: No registered users and 1 guest