Godot Version
Godot_4.2.2
Question
I have a code that is printing random number from 1 to 10,but how do i make that code loop.This is all i have
var number := 0.0
func _ready():
number = randf_range(1.0,10.0)
print(number)
Please help
Godot_4.2.2
I have a code that is printing random number from 1 to 10,but how do i make that code loop.This is all i have
var number := 0.0
func _ready():
number = randf_range(1.0,10.0)
print(number)
Please help
With loops. Lots of tutorials on them out there.
“for i in range(100):” would do it 100 times. “while true:” would do it forever, or at least until it crashes. Many options.
i will try it now.
it works,Thank you for this