-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to pick random value from array #67444
Conversation
Alternative PR: #65077. |
|
Math::rand() is not the only way of getting a random number, by default Godot picks a not so random number generator. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved in #57007, and approved in today's PR meeting :)
@nonunknown If you can update the docs to insert the new method's docs at the right place alphabetically, instead of the current place so CI passes, we can merge this. You can ping me once you updated it :) |
@mhilbrunner I have a serious problem with commit squashing, so if I can have support for squashing I can do this now! |
@nonunknown Sure, I can help you on RC or otherwise just squash the commits for you. |
94a2190
to
9f4dbf4
Compare
I've checked #54940 and seems it doesnt interfere on this PR anymore, so this can be approved without worries! |
Thanks! 🎉 |
May you bring this to 3.x? |
Is there any chance |
Returns a random value from the target array.
Implements: godotengine/godot-proposals#3454