I made a GameMaker version of Mersenne Twister Random Engine. This engine is so popular, that C++ Standard library also using it.
It provides 3 functions within a engine class.
Integer random gen make_integer(upper)
This is a exclusive random generator. The result would not include the upper.
Real random gen make_float(upper)
This is a inclusive random generator. The result would include the upper.
Boolean random gen make_boolean()
An Simple Example:
Engine = new MersenneTwister(2059171)
x = Engine.make_float(room_width)
y = Engine.make_float(room_height)
This works very well surprisingly. I hope you to use it happily!
End User Licence Agreement (EULA).
Here we go