I'm trying to create a GUI that goes to a random co-ordinate on the screen, but from my knowledge math.random only works with whole integers, I was thinking about dividing the math.random by 2, but then I would get a higher value than anticipated. Would my best bet be to make a table of values and chose a random index number to achieve this? or is there another stock method to get this done?
NOTE: I'm talking about absolute position of the GUI, not the offset. (Absolute is between 0 and 1 for the active view port)

4 comments
https://scriptinghelpers.org/questions/40983/how-do-i-make-a-mathrandom-with-decimals
I believe that the Random.new() constructor has a ability to make decimals, not sure though
Thanks. I would upvote you both, but unfortunately I don't have the ability to upvote.
math.random() returns a random float from 0 to 1. You can multiply this by x to get a range of floats from 0 to x. You can y to this to get floats from y to x + y.