GameMaker (2.3)
Icon

Mersenne Twister Random Engine

Iconoclast

You must be logged in to obtain assets

Description

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.

  1. Integer random gen make_integer(upper) This is a exclusive random generator. The result would not include the upper.

  2. Real random gen make_float(upper) This is a inclusive random generator. The result would include the upper.

  3. Boolean random gen make_boolean()

An Simple Example:

Engine = new MersenneTwister(2059171)
x = Engine.make_float(room_width)
y = Engine.make_float(room_height)
  • NOTE: I didn't write everything. This is a imported version of CoffeeScript code by Jamis Buck. You can see it here.

This works very well surprisingly. I hope you to use it happily!

End User Licence Agreement (EULA).

Age Rating: 4+

Version

GMS2.3 - Version 2.0.0. Published January 15, 2021

Here we go

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait