[PLUGIN] Seeded Pseudo Random Number Generator

Post your work in progress addons and get feedback

Post » Thu Sep 14, 2017 8:28 pm

I know theres already a few of these around, but one costs money and the other has dead links.
So i figured it'd be a nice simple introduction for me to the JavaScript SDK. (read: first plugin, be nice ;) )

Basically, this is an expression only plugin that will take a single input ( the "Seed") and generate a Psuedo Random Number based on that seed.

You can then use that PRN just like you'd use the built in Random expression. But this time it'll always be the same, no matter how many times you generate it!

See it in action here

I've tested it a bit, but I'd love to have the community have a play before I move it to completed. Also, any features you'd like added, comment below!

---
ALL DOWNLOADS INCLUDE EXAMPLE CAPX SHOWING USAGE.
---

V.1.0.0 - 14/09/17 - DOWNLOAD
    Initial release
    Two Expressions:
    - Int: returns a whole number between 0 and 2147483647 based on the seed
    - Float: returns a float between 0 and 1 based on the seed.

NOTE: Not 100% Random in its spread, tends towards 1 & 0. Hence the Pseudo Random name. If you want a 100% Random, proper Entropy, correct spread... ask and I might implement it. It wont be as fast though.
Image
Keeghan McGarry | Managing Director
Facebook-Website
B
14
S
3
Posts: 77
Reputation: 1,081

Return to Work in Progress Addons

Who is online

Users browsing this forum: No registered users and 0 guests