Skip to content

Instantly share code, notes, and snippets.

@thepeopleseason
Last active July 21, 2025 14:23
Show Gist options
  • Save thepeopleseason/591983b397bb0d44ae9972a5060058cd to your computer and use it in GitHub Desktop.
Save thepeopleseason/591983b397bb0d44ae9972a5060058cd to your computer and use it in GitHub Desktop.
Resolve Tyrant of Discord and an arbitrarily large number of tokens
javascript:void(function(){let c=0;l=parseInt(prompt('Land count'));p=parseInt(prompt('Total Permanents'));for (let x=0; x<p; x++) {if(Math.random()*p < l){break;}else{p--;c++;}};alert(c);}())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment