Crypto Api
Random number generator for integers and floats using the Crypto API.
Authors and contributors to this experimental extension: (not specified).
Warning
This is an extension made by a community member and it only got through a light review by the GDevelop extension team. As such, we can't guarantee it meets all the quality standards of fully reviewed extensions.
This uses the Crypto API to create a random number see help for more details.
You might ask how this differs from the built-in random functions in GDevelop like RandomInRange. In basic terms, it provides a more random number than Math.random() which is what the built-in functions use. That randomness does come at a cost of performance so be aware of your usage of this.
This has nothing to do with crypto currency
Tip
Learn how to install new extensions by following a step-by-step guide.
Expressions
Expression | Description | |
---|---|---|
CryptoApi::RandomFloatInRange(number, number) |
Uses the Crypto API to create a longer random number in an float range. | |
🔢 Number | Minimum Value | |
🔢 Number | Maximum Value | |
CryptoApi::RandomInRange(number, number) |
Uses the Crypto API to create a longer random number in an integer range. | |
🔢 Number | Minimum Value | |
🔢 Number | Maximum Value |
This page is an auto-generated reference page about the Crypto Api extension, made by the community of GDevelop, the open-source, cross-platform game engine designed for everyone. Learn more about all GDevelop community-made extensions here.