ChanceLua - Random ____ generator in pure Lua!
Posted: Thu Aug 06, 2015 12:56 pm
Howdy! I want to share with everyone ChanceLua:
https://github.com/edwinhollen/ChanceLua
This is my random (almost) everything generator written in pure Lua. It does simple things, like generate random numbers, pick an item from a list, get a random boolean given likelihood; but it also does more complex things, such as generating names (first and last, male and female), words, street addresses, phone numbers, IP addresses (IPv4 and IPv6), hashes, and more!
Ideally, I want ChanceLua to replicate the functionality of ChanceJS (http://chancejs.com/). I started this project as part of a game I'm prototyping with LÖVE which requires random (semi-realistic) elements. I couldn't seem to find what I was looking for, so I made my own!
Thanks for taking a look!
https://github.com/edwinhollen/ChanceLua
This is my random (almost) everything generator written in pure Lua. It does simple things, like generate random numbers, pick an item from a list, get a random boolean given likelihood; but it also does more complex things, such as generating names (first and last, male and female), words, street addresses, phone numbers, IP addresses (IPv4 and IPv6), hashes, and more!
Ideally, I want ChanceLua to replicate the functionality of ChanceJS (http://chancejs.com/). I started this project as part of a game I'm prototyping with LÖVE which requires random (semi-realistic) elements. I couldn't seem to find what I was looking for, so I made my own!
Thanks for taking a look!