How does math.random actually work?

When I get a random number using math.random(0,1) it either returns 0 or 1. But if I do (math.random(0,1)*100) it actually becomes the number (for example 72|0.72). What happens?

They tell you it’s an integer value.
math | Documentation - Roblox Creator Hub
It looks like it’s taking the multipied value of 0-100, not 0-1
Try this
(math.random(0,1)) * 100

EDIT: brain stopped working, should be math.random(0,100)/100

i think its just based on a certain nanosecond, so you can find the time required to cheat it pretty easily. but idk why it doesnt do the same for me. idk most of what you mean tho.

oh and scottifly, i wanted to mention that you are pretty good at building. (just a compliment, dont remove this because i wanna be nice)

print (math.random(0,1*100) /100) yeah I meant this sorry for confusion