Why isn’t math.random not random?

All of these replies are an awkward way of doing this. The reason it isn’t random is because every time the game is started, the seed is the same.
To fix this, try this instead:

math.randomseed(time() * tick())
local randomNumber = math.random(1, 2)
3 Likes

Thank you very much fir understanding the situation

2 Likes

Here’s the post you’re looking for:

3 Likes