so I have been having some problems with the coding for my game, up until today the math.random works fine but for some reason its not working
print(math.random(100))
Every single time I do it I always get the same exact number and im pulling hairs
Yes I have tried the code on a different place, and I have reinstalled studio, advice please
This has to do with the way the code works. Whenever you run the code at a specific time past starting it in studio, it will have the same results. You will only ever notice it producing duplicates if you run it without delaying calling it, i.e. the wait function. Don't worry about it, it's working fine. If you do want to produce different results for testing purposes, then delay before you search for random numbers at the beginning of your script.
try, math.random(1,100) < says pick a whole number from 1,100.....