Changelog
* v1.00b(GMT 1300 11-11-2015):
* 1. Added descriptions that will be shown in the plugin manager
* v1.00a(GMT 1300 24-10-2015):
* 1. 1st version of this plugin finished
Authors
DoubleX
Credits
DoubleX(Optional)
Purpose
Lets users changes the number of partitions the RNG being run per Math.random() call to control the RNG distributions on the fly
Plugin Call
* # Configuration manipulations
* 1. DoubleX_RMMV.Partitioned_Random.parts
* - Returns the value of parts under DoubleX_RMMV.Partitioned_Random
* 2. DoubleX_RMMV.Partitioned_Random.parts = val
* - Sets the value of parts under DoubleX_RMMV.Partitioned_Random as
* val
* - No DoubleX_RMMV.Formulae_Edit.parts change will be saved
Configuration
* @param parts
* @desc RNG will be run under each of parts equal-sized partitions
* No partition will be run under twice before they've all been run under
* parts shouldn't be too large nor too small to maximize the chance for
* the RNG generated by Math.random() to be more evenly distributed
* Larger parts means more resources(mainly time) needed to run it
* @default 10
Games using this script
None so far
Prerequisites
Nothing special
Terms Of Use
You shall keep this plugin's Plugin Info part's contents intact
You shalln't claim that this plugin's written by anyone other than DoubleX or his aliases
None of the above applies to DoubleX or his/her aliases
First MV plugin on RMRK! Yay, thanks DoubleX! ^_^
I have no idea what this does, but I'm glad somebody on RMRK is making MV stuff. :tpg:
Quote from: Acolyte on October 25, 2015, 02:17:13 AM
I have no idea what this does, but I'm glad somebody on RMRK is making MV stuff. :tpg:
The original Math.random() can return any number greater than or equal to 0, and less than 1.
Sometimes it can return 2 numbers that are extremely close to each other successively, like returning 0.01 immediately followed by 0.02.
If this plugin's used, users can ensure that such thing will never happen.
For example, if parts are set as 2, then it'll be sure that if the 1st result's smaller than 0.5, the 2nd result will always be greater than or equal to 0.5.
Then the partitions will be reset, so the 3rd result won't be restricted, but again, if the 3rd result's greater than or equal to 0.5, the 4th result will always be less than 0.5.
This process will continue infinitely :)
Updates
* v1.00b(GMT 1300 11-11-2015):
* 1. Added descriptions that will be shown in the plugin manager