diff options
author | Max Hilbrunner <mhilbrunner@users.noreply.github.com> | 2022-10-21 16:25:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-21 16:25:52 +0200 |
commit | 5cefc07d908be50ac88ede8bce5572b030815695 (patch) | |
tree | 7141c95b9024f92d354c198dc54ce5c2e6000c88 /core/variant/array.h | |
parent | c4c35ab77a4090b0b8f813bce71fdf3053f65a05 (diff) | |
parent | 9f4dbf415da6d150788915cb35a9c3dc7f04c547 (diff) | |
download | redot-engine-5cefc07d908be50ac88ede8bce5572b030815695.tar.gz |
Merge pull request #67444 from nonunknown/array_pick_random
Add ability to pick random value from array
Diffstat (limited to 'core/variant/array.h')
-rw-r--r-- | core/variant/array.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/variant/array.h b/core/variant/array.h index 3d9a794969..ee265a9ffd 100644 --- a/core/variant/array.h +++ b/core/variant/array.h @@ -79,6 +79,7 @@ public: Variant front() const; Variant back() const; + Variant pick_random() const; void sort(); void sort_custom(const Callable &p_callable); |