Skip to content

Instantly share code, notes, and snippets.

@gocha
Last active August 8, 2019 15:17
Show Gist options
  • Select an option

  • Save gocha/1090375736acac6f785405936dab07e0 to your computer and use it in GitHub Desktop.

Select an option

Save gocha/1090375736acac6f785405936dab07e0 to your computer and use it in GitHub Desktop.
Kirby Super Star: RNG Module Example
-- 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