issues
search
goostengine
/
goost
A general-purpose, extensible and customizable C++ extension for Godot Engine.
https://goostengine.github.io/
MIT License
481
stars
18
forks
source link
Rename `Random.choice()` to `Random.pick()`
#181
Closed
Xrayez
closed
2 years ago
Xrayez
commented
2 years ago
Part of #176.
To avoid name collision with
Random.choices()
for weighed selection.
If we were to add this to Godot, only
Random.choices()
would be likely merged:
https://github.com/godotengine/godot-proposals/issues/3948#issuecomment-1037289197
Random.pick()
will go along with
Random.pop()
There's a similar PR with similar name in Godot:
https://github.com/godotengine/godot/pull/57007
pop()
suggested in the proposal:
godotengine/godot-proposals#3454
Faster and easier to type.
Part of #176.
Random.choices()
for weighed selection.Random.choices()
would be likely merged: https://github.com/godotengine/godot-proposals/issues/3948#issuecomment-1037289197Random.pick()
will go along withRandom.pop()
pop()
suggested in the proposal: