[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
109
S
27
G
277
Posts: 4,482
Reputation: 154,924

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
4
G
2
Posts: 61
Reputation: 2,536

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
64
S
17
G
5
Posts: 172
Reputation: 8,426

Post » Sat Sep 24, 2016 11:32 pm

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

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.
Check out my awesome game Doptrix
B
17
S
9
G
51
Posts: 839
Reputation: 28,487

Post » Sat Sep 09, 2017 3:44 pm

Dropbox link in the original post is dead.
I uploaded it to my dropbox
SeedRandom plugin with example CAPX
Check out my awesome game Doptrix
B
17
S
9
G
51
Posts: 839
Reputation: 28,487


Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 2 guests