[PLUGIN] SeedRandom

Post your completed addons to share with the community

Post » Sat Nov 24, 2012 12:02 pm

Hi all,

Just a quick adaptation of this:

Seed Random

Download here.

(Example in file)

Example here as well (uses 110.2).

Very useful for procedural generation, etc. I haven't checked if this has been done before so sorry if it has.

Regards,

00Rez
B
21
S
7
G
2
Posts: 185
Reputation: 3,280

Post » Sat Nov 24, 2012 12:05 pm

RandomPlus by @cow_trix
B
107
S
25
G
243
Posts: 4,387
Reputation: 137,466

Post » Sat Nov 24, 2012 12:13 pm

[QUOTE=rexrainbow] RandomPlus by @cow_trix[/QUOTE]

I thought it would have been done already. Thanks Rex. Suppose having a choice doesn't hurt anyone .
B
21
S
7
G
2
Posts: 185
Reputation: 3,280

Post » Wed Feb 20, 2013 9:21 pm

I use both ! this one to random the seed I use in other one ;)
B
14
S
2
G
2
Posts: 60
Reputation: 2,409

Post » Sat Sep 24, 2016 7:24 am

I've used both, and seedrandom actually fixes the built in random expression. If you have a bunch of calls to the random expression and you want to give them a seed, then use seedrandom or you will have to replace your system object random expressions with randomplus object expressions.
Follow my CZero development on twitter https://twitter.com/CaptainZeroGame
B
56
S
15
G
5
Posts: 163
Reputation: 7,911

Post » Sat Sep 24, 2016 11:32 pm

Great work. Also, that posting seemed pretty rude with the alternative.
B
51
S
26
G
8
Posts: 121
Reputation: 8,501

Post » Mon Nov 07, 2016 1:18 pm

Great plugin, I like that it works with all standard C2 actions and expressions.

However, I noticed that the "Use normal random" action is really slow. On fast PC it may be almost instant but on mobile it causes a significant lag (2-3 seconds).

Looking at the source files of the plugin, it seems that "Use normal random" actually generates a truly random string which is then used as a new seed. Building this string for some reason takes a lot of system time.
B
14
S
5
G
1
Posts: 6
Reputation: 1,416


Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 2 guests