RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
DoubleX RMMV Partitioned Random

0 Members and 1 Guest are viewing this topic.

***
Scripter
Rep:
Level 36
Changelog
Code: [Select]
*      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

Code: [Select]
*    # 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
Code: [Select]
* @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
« Last Edit: November 11, 2015, 12:22:17 PM by DoubleX »

*
The Hero of Rhyme
Rep:
Level 83
( ͡° ͜ʖ ͡°)
2014 Queen of RMRKProject of the Year 20142014 Best RPG Maker User - Story2011 Best Newbie2014 Kindest Member2014 Best RPG Maker User - Creativity2013 Queen of RMRKBronze SS AuthorBronze Writing ReviewerSecret Santa 2013 ParticipantFor taking arms in the name of your breakfast.GOOD!For frequently finding and reporting spam and spam bots2012 Best Yuyubabe Smiley2012 Best RPG Maker User (Creativity);o
First MV plugin on RMRK! Yay, thanks DoubleX! ^_^
Spoiler for My Games and Art:
ℒℴѵℯ❤


My Artwork Thread

The Lhuvia Tales [Current]

Ambassador [Complete]

The Postman [Complete]

The Wyvern [Complete]

Phoenix Wright: Haunted Turnabout [Complete]

Major Arcana [Cancelled]


*
A-pow 2015
Rep:
Level 81
2014 Best RPG Maker User - GraphicsFor frequently finding and reporting spam and spam bots2013 Most Unsung MemberSecret Santa 2013 ParticipantFor taking arms in the name of your breakfast.How can I help you? :Da^2 + b^2 = c^2Secret Santa 2012 ParticipantSilver - GIAW 10Silver - GIAW 9Bronze - GIAW HalloweenGold - Game In A Week VII
I have no idea what this does, but I'm glad somebody on RMRK is making MV stuff.  :tpg:

***
Scripter
Rep:
Level 36
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  :)

***
Scripter
Rep:
Level 36
Updates
Code: [Select]
*      v1.00b(GMT 1300 11-11-2015):                                         
 *      1. Added descriptions that will be shown in the plugin manager