Skip to content

Crypto Api

Random number generator for integers and floats using the Crypto API.

Authors and contributors to this community extension: (not specified).

Warning

This is an extension made by a community member — but not reviewed by the GDevelop extension team. As such, we can't guarantee it meets all the quality standards of official extensions. In case of doubt, contact the author to know more about what the extension does or inspect its content before using it.


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

Read more...

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.