Skip to content

Instantly share code, notes, and snippets.

@Pengeszikra
Created November 16, 2020 12:27
Show Gist options
  • Save Pengeszikra/586289292e18ce33ce51e6bbdbb8440f to your computer and use it in GitHub Desktop.
Save Pengeszikra/586289292e18ce33ce51e6bbdbb8440f to your computer and use it in GitHub Desktop.
calc lotto 5 variatons
const fact = n => n ? fact(n - 1) * n : 1;
Math.round(fact(90) / (fact(5) * fact(90 - 5)) * (1 ** 5) * (1 ** 85)).toLocaleString();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment