じ☆ve冰风 发表于 2026-7-30 20:23:09

DoubleX RMVXA rand Edit

DoubleX RMVXA rand Edit  v1.01a​
by DoubleX​
Introduction
Sets the number of times the RNG being run per rand execution

Spoilermodule DoubleX_RMVXA  module Rand_Edit#------------------------------------------------------------------------------|#  * (v1.01a+)Integer_Rand_Partition, default = true                           |#    - RNG will have max partitions, max being the arguement of rand()         |#    - Larger Integer_Rand_Partition generally means less random to the number |#      generated by rand but more resources needed(mainly time) to run it      |#------------------------------------------------------------------------------|  Integer_Rand_Partition = true#------------------------------------------------------------------------------|#  * (v1.01a+)Test_RNG_Times, default = 0                                      |#    - Test the performance and settings of this script by running rand        |#      Test_RNG_Times times and displaying its min, max and mean afterwards    |#    - The results of each rand can also be seen in the console of RMVXA       |#    - Setting Test_RNG_Times as 0 will disable this feature completely         |#------------------------------------------------------------------------------|  Test_RNG_Times = 0#------------------------------------------------------------------------------|#  * (v1.01a+)Float_Rand_Partition, default = 10                               |#    - RNG will be run under Float_Rand_Partition equal-sized partitions       |#    - No partition will be picked twice before all partitions are picked      |#    - Larger Float_Rand_Partition generally means less random to the number   |#      generated by rand but more resources needed(mainly time) to run it      |#------------------------------------------------------------------------------|  Float_Rand_Partition = 10#------------------------------------------------------------------------------|#  * Rand_Times, default = 1                                                   |#    - RNG will be run by rand Rand_Times times(returning mean afterwards)     |#    - Larger Rand_Times generally means less random to the number generated by|#      rand but more resources needed(mainly time) to run it                   |#------------------------------------------------------------------------------|  Rand_Times = 1#------------------------------------------------------------------------------|#  * Notes                                                                     |#    - Float_Rand_Partition is inside the Rand_Times loop, meaning that rand   |#      will pick Rand_Times partitions and return the mean afterwards per call |#    - Mathematically speaking, randomness = f(Rand_Times) isn't decreasing but|#      it should show an overall downward trend and approach to 0 in general   |#------------------------------------------------------------------------------|  end # Rand_Editend # DoubleX_RMVXA



Features
Almost no knowledge of scripting is need to use this script(some is needed to know how to edit it)
 
How to use
Open the script editor and put this script into an open slot between Materials and Main. Save to take effect.
 
FAQ
None
 
Credit and Thanks
DoubleX(Giving me credit is completely optional)
No terms of use other than not claiming this script as created by anyone except DoubleX or his alias
 
Compatibility

Scripts aliasing or rewriting method rand under module Kernel may have compatibility issues with this script
Place this script above those aliasing any of these methods if possible
 
Changelog

v1.01a(GMT 1100 5-4-2014):

- Added Integer_Rand_Partition, Test_RNG_Times and Float_Rand_Partition

v1.00a(GMT 0100 5-4-2014):
- 1st version of this script finished

(DoubleX)rand Edit v1.00a.txt


本贴来自国际rpgmaker官方论坛作者:DoubleX处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/doublex-rmvxa-rand-edit.25755/
页: [1]
查看完整版本: DoubleX RMVXA rand Edit