How to make a random number in gdscript

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: 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.

:bust_in_silhouette: Reply From: kidscancode

randi() to get a random integer:

rand_range() to get a random float:

randomize() to seed the rng: