Skip to content

Instantly share code, notes, and snippets.

@3n
Created Nov 19, 2008
Embed
What would you like to do?
function coin_toss(prob){
return Math.random() > 1 - (prob || 0.5)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment