Install Asset
Install via Godot
To maintain one source of truth, Godot Asset Library is just a mirror of the old asset library so you can download directly on Godot via the integrated asset library browser
Quick Information
The main goal of this plugin is to create a better random number generator, ie. all digits that come out of it follow a normal distribution. This is because during testing I noted some issues with the Godot PCG random number generator; refer to the provided excel file for my notes, thoughts, and procedures for testing. Additionally this generator does not require preparation to work properly, ie. you do not call randomize() at any point. Finally it adds the ability to generate streams of random numeric digits of any length, output as a string.
BetterRandNumGen
🛠️ Installation
Download the BetterRandNumGen addon for Godot 4.x. Extract the betterrandnumgen folder into the addons folder within your Godot project directory. Enable the addon in Godot's plugins tab. (Project > Project Settings > Plugins)
📖 Usage
Can use as either main screen plugin (click interface) or as direct plugin to your application (call to class_name BetterRandNumGen ) Functions:
BetterRandNumGen.randi()
BetterRandNumGen.randi_range()
BetterRandNumGen.randf()
BetterRandNumGen.randf_range()
BetterRandNumGen.generate_digits( v_need:int )
BetterRandNumGen.get_from_array(x=0,y=0,arrToUse=0) not intended for external use. Internally used to collect a random digit
The 'Main screen plugin' aspect has very limited functionality, and will appear next to the 2D,3D,Script,AssetLib buttons in the top center of Godot 4.x
💖 Credits
This work is a solo work developed by Samuel Landers of [email protected]
The main goal of this plugin is to create a better random number generator, ie. all digits that come out of it follow a normal distribution. This is because during testing I noted some issues with the Godot PCG random number generator; refer to the provided excel file for my notes, thoughts, and procedures for testing. Additionally this generator does not require preparation to work properly, ie. you do not call randomize() at any point. Finally it adds the ability to generate streams of random numeric digits of any length, output as a string.
Reviews
Quick Information
The main goal of this plugin is to create a better random number generator, ie. all digits that come out of it follow a normal distribution. This is because during testing I noted some issues with the Godot PCG random number generator; refer to the provided excel file for my notes, thoughts, and procedures for testing. Additionally this generator does not require preparation to work properly, ie. you do not call randomize() at any point. Finally it adds the ability to generate streams of random numeric digits of any length, output as a string.