I'm trying to use math.random with decimals.
How do i go on about doing this?
I'm trying to use math.random with decimals.
How do i go on about doing this?
you would maybe do
UDim2.new(math.random(10,100),math.random(10,100),math.random(10,100),math.random(10,100)) -- btw the numbers is like between so it randomizes between 10 and 100 if u didn't know tho
thats one line btw bc it looks like its 2 lines but it isnt btw havent tested it idk if it will work tip : hover your mouse over my answer and click view source and copy the script only
btw u can remove the numbers from math.random if u wanti t to be randomized in infinite nubers
This won't work. math.random utilizes integers, they asked for decimal precision.
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Random.new():NextNumber().
That explains it! Thank you very much, submitting this as an answer would be great.