No commit activity in last 3 years
No release in over 3 years
Take the tactile fun out of gaming with this digital coin flipper, card picker, dice roller, and lottery number picker.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Lame Game Randomizer

Install the gem

gem install 'lame_game_randomizer'

Require the gem in your project or irb

require 'lame_game_randomizer'

Usage

Coin Flipper

LameGameRandomizer::Coin.flip     #=> "heads"

Card Picker

LameGameRandomizer::PlayingCard.draw    #=> "Jack of Diamonds"
LameGameRandomizer::PlayingCard.draw    #=> "3 of Clubs"

Dice Roller

LameGameRandomizer::Dice.roll("d6", 3)   #=> [1, 6, 2]
LameGameRandomizer::Dice.roll("d20", 1)   #=> [17]

Lotto Picker

LameGameRandomizer::Lotto.pick(6, 69)    #=> [55, 21, 1, 36, 68, 13]