Last active
August 8, 2019 15:17
-
-
Save gocha/1090375736acac6f785405936dab07e0 to your computer and use it in GitHub Desktop.
Kirby Super Star: RNG Module Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- https://github.com/gocha/gocha-tas/blob/master/Tools/Lua/kirbysuperstar/random.lua | |
| local SuperDeluxeRNG = require "kirbysuperstar/random" | |
| local random = SuperDeluxeRNG.new(0x1234) | |
| for i = 1, 10 do | |
| print(random:random(6)) | |
| -- raw random seed can be accessed via random.seed | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment