Better Random Number Generator

An asset by TigerWild
The page banner background of a mountain and forest
Better Random Number Generator hero image

Quick Information

0 ratings
Better Random Number Generator icon image
TigerWild
Better Random Number Generator

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.

Supported Engine Version
4.0
Version String
1.3.2
License Version
CC-BY-SA-4.0
Support Level
community
Modified Date
10 months ago
Git URL
Issue URL

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

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Better Random Number Generator icon image
TigerWild
Better Random Number Generator

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.

Supported Engine Version
4.0
Version String
1.3.2
License Version
CC-BY-SA-4.0
Support Level
community
Modified Date
10 months ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers