diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-03-28 00:38:20 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-03-28 00:38:20 +0300 |
commit | 04172e3dd0bf1b2645c4bbc0c819e4e3a5ab87e3 (patch) | |
tree | 6e70ee8185a0fde5bb3952f9e826ca54c846af47 /games/minimal | |
parent | 2c56a9f58880887ae88c3707e15658855d86252e (diff) | |
download | minetest-04172e3dd0bf1b2645c4bbc0c819e4e3a5ab87e3.tar.gz minetest-04172e3dd0bf1b2645c4bbc0c819e4e3a5ab87e3.tar.bz2 minetest-04172e3dd0bf1b2645c4bbc0c819e4e3a5ab87e3.zip |
Add PseudoRandom in Lua API
Diffstat (limited to 'games/minimal')
-rw-r--r-- | games/minimal/mods/test/init.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/games/minimal/mods/test/init.lua b/games/minimal/mods/test/init.lua new file mode 100644 index 000000000..051b47906 --- /dev/null +++ b/games/minimal/mods/test/init.lua @@ -0,0 +1,11 @@ +-- +-- Minimal Development Test +-- Mod: test +-- + +-- Try out PseudoRandom +pseudo = PseudoRandom(13) +assert(pseudo:next() == 22290) +assert(pseudo:next() == 13854) + + |