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

Support dictionaries for `Random.choice()` method #140

Closed Xrayez closed 3 years ago

Xrayez commented 3 years ago

Since Dictionary is indexable by key and is a container similarly to Array, it makes sense to return a random value from dictionary.