Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | TheTrueBear |
I need a random number for every iteration in a loop, how will I go about doing that?
I am using GDScript.
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | TheTrueBear |
I need a random number for every iteration in a loop, how will I go about doing that?
I am using GDScript.
Reply From: | kidscancode |
randi()
to get a random integer:
rand_range()
to get a random float:
randomize()
to seed the rng: