#random number help

17 messages · Page 1 of 1 (latest)

ember sun
#

Hey so I'm following tutorial to practice lua, and when this guy used this function he kept getting the same value when repeating it, but when I do it on my terminal I'm getting different values each time
Why's that?

#

The toturial video keeps repeating the same number, but for me I get a different one each time

echo folio
ember sun
echo folio
#

Oh didn't saw, I just responded without looking the rest xD

ember sun
#

Yeah, when I repeat it I get different ones, its just annoying me as to why

mint pantherBOT
#

studio** You are now Level 1! **studio

ember sun
#

Im using 5.4 with visual studio and hes using 5.3.5 with sublime

glad wadi
#

What do you want

ember sun
#

☹️

glad wadi
#

It should not return same values

#

But you can use math.randomseed

#

If you set a specific seed math.random will return values in the same order

#

I mean