- Open Terminal and copy & paste this:
brew install lua
- You may also want to install a package manager for Lua, e.g. LuaRocks:
brew install luarocks
- Open Visual Studio Code and add these extensions:
- Write this to Terminal:
lua [filename].lua
, e.g.lua lottery.lua
❯ lua lottery.lua
Random order list content:
4
2
3
5
1
Final order of the name list:
Catherine
Helen
Terry
Max
Mike