Now I want to implement a helper function that returns a random value of a dictionary like below. I can’t really use types here, so is there a way do ignore the warnings for this function?
#ignore-warning
static func get_random_dictionary_entry(dict: Dictionary, rng: RandomNumberGenerator):
var random_key := dict.keys()[_rng.randi() % dict.size()]
var random_value := dict[random_key]
return random_value