Skip to content

Instantly share code, notes, and snippets.

@mort
Created December 15, 2008 12:35
Show Gist options
  • Save mort/35941 to your computer and use it in GitHub Desktop.
Save mort/35941 to your computer and use it in GitHub Desktop.
undefined
module Kandypot
module Randomizer
def lucky(i,p = 0.8)
(rand < p) ? i : nil
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment