| route-pattern | /:user_id/:repository |
| route-controller | files |
| route-action | disambiguate |
| fetch-nonce | v2:c56c9983-c3f7-5760-4465-c550e217ee5f |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | B14A:320964:6C59EE:908419:6A4C3B66 |
| html-safe-nonce | 319adba49091fc565507bf019db821a79e8a102543d49fb417a45b756877d948 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTRBOjMyMDk2NDo2QzU5RUU6OTA4NDE5OjZBNEMzQjY2IiwidmlzaXRvcl9pZCI6IjkyNDcyMDkxMzE3NzEzMTg3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8467cf6527448092f69569fe2c0d85358d37b97af84df0e9ac55d4ea1883400b |
| hovercard-subject-tag | repository:561956626 |
| github-keyboard-shortcuts | repository,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | // |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/lacrypta/lottery |
| twitter:image | https://opengraph.githubassets.com/34fe80a2872a1d1e0d0e8bfc3983dbf1f53bfa4abe3651d4984e0623e0a7d732/lacrypta/lottery |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/34fe80a2872a1d1e0d0e8bfc3983dbf1f53bfa4abe3651d4984e0623e0a7d732/lacrypta/lottery |
| og:image:alt | Blokchain-backed lottery. Contribute to lacrypta/lottery development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1b6b16d04026f131a36d57e3b01d0f4d26a51800edf48bf5ed0256e0ac905511 |
| turbo-cache-control | no-cache |
| go-import | github.com/lacrypta/lottery git https://github.com/lacrypta/lottery.git |
| octolytics-dimension-user_id | 112116892 |
| octolytics-dimension-user_login | lacrypta |
| octolytics-dimension-repository_id | 561956626 |
| octolytics-dimension-repository_nwo | lacrypta/lottery |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 561956626 |
| octolytics-dimension-repository_network_root_nwo | lacrypta/lottery |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d11deab54ce15bac57bda991cc63805976812c11 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/lacrypta/lottery#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flacrypta%2Flottery |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flacrypta%2Flottery |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E&source=header-repo&source_repo=lacrypta%2Flottery |
| Reload | https://github.com/lacrypta/lottery |
| Reload | https://github.com/lacrypta/lottery |
| Reload | https://github.com/lacrypta/lottery |
| Please reload this page | https://github.com/lacrypta/lottery |
|
lacrypta
| https://github.com/lacrypta |
| lottery | https://github.com/lacrypta/lottery |
|
Notifications
| https://github.com/login?return_to=%2Flacrypta%2Flottery |
|
Fork
0
| https://github.com/login?return_to=%2Flacrypta%2Flottery |
|
Star
3
| https://github.com/login?return_to=%2Flacrypta%2Flottery |
|
Code
| https://github.com/lacrypta/lottery |
|
Issues
0
| https://github.com/lacrypta/lottery/issues |
|
Pull requests
0
| https://github.com/lacrypta/lottery/pulls |
|
Actions
| https://github.com/lacrypta/lottery/actions |
|
Projects
| https://github.com/lacrypta/lottery/projects |
|
Security and quality
0
| https://github.com/lacrypta/lottery/security |
|
Insights
| https://github.com/lacrypta/lottery/pulse |
|
Code
| https://github.com/lacrypta/lottery |
|
Issues
| https://github.com/lacrypta/lottery/issues |
|
Pull requests
| https://github.com/lacrypta/lottery/pulls |
|
Actions
| https://github.com/lacrypta/lottery/actions |
|
Projects
| https://github.com/lacrypta/lottery/projects |
|
Security and quality
| https://github.com/lacrypta/lottery/security |
|
Insights
| https://github.com/lacrypta/lottery/pulse |
| https://github.com/lacrypta/lottery |
| Branches | https://github.com/lacrypta/lottery/branches |
| Tags | https://github.com/lacrypta/lottery/tags |
| https://github.com/lacrypta/lottery/branches |
| https://github.com/lacrypta/lottery/tags |
| 32 Commits | https://github.com/lacrypta/lottery/commits/main/ |
| https://github.com/lacrypta/lottery/commits/main/ |
| assets | https://github.com/lacrypta/lottery/tree/main/assets |
| assets | https://github.com/lacrypta/lottery/tree/main/assets |
| contracts | https://github.com/lacrypta/lottery/tree/main/contracts |
| contracts | https://github.com/lacrypta/lottery/tree/main/contracts |
| deployments/matic | https://github.com/lacrypta/lottery/tree/main/deployments/matic |
| deployments/matic | https://github.com/lacrypta/lottery/tree/main/deployments/matic |
| scripts | https://github.com/lacrypta/lottery/tree/main/scripts |
| scripts | https://github.com/lacrypta/lottery/tree/main/scripts |
| .env.example | https://github.com/lacrypta/lottery/blob/main/.env.example |
| .env.example | https://github.com/lacrypta/lottery/blob/main/.env.example |
| .envrc | https://github.com/lacrypta/lottery/blob/main/.envrc |
| .envrc | https://github.com/lacrypta/lottery/blob/main/.envrc |
| .gitattributes | https://github.com/lacrypta/lottery/blob/main/.gitattributes |
| .gitattributes | https://github.com/lacrypta/lottery/blob/main/.gitattributes |
| .gitconfig | https://github.com/lacrypta/lottery/blob/main/.gitconfig |
| .gitconfig | https://github.com/lacrypta/lottery/blob/main/.gitconfig |
| .gitignore | https://github.com/lacrypta/lottery/blob/main/.gitignore |
| .gitignore | https://github.com/lacrypta/lottery/blob/main/.gitignore |
| .gitkeep | https://github.com/lacrypta/lottery/blob/main/.gitkeep |
| .gitkeep | https://github.com/lacrypta/lottery/blob/main/.gitkeep |
| .nvmrc | https://github.com/lacrypta/lottery/blob/main/.nvmrc |
| .nvmrc | https://github.com/lacrypta/lottery/blob/main/.nvmrc |
| LICENSE.md | https://github.com/lacrypta/lottery/blob/main/LICENSE.md |
| LICENSE.md | https://github.com/lacrypta/lottery/blob/main/LICENSE.md |
| README.md | https://github.com/lacrypta/lottery/blob/main/README.md |
| README.md | https://github.com/lacrypta/lottery/blob/main/README.md |
| hardhat.config.ts | https://github.com/lacrypta/lottery/blob/main/hardhat.config.ts |
| hardhat.config.ts | https://github.com/lacrypta/lottery/blob/main/hardhat.config.ts |
| package.json | https://github.com/lacrypta/lottery/blob/main/package.json |
| package.json | https://github.com/lacrypta/lottery/blob/main/package.json |
| tsconfig.json | https://github.com/lacrypta/lottery/blob/main/tsconfig.json |
| tsconfig.json | https://github.com/lacrypta/lottery/blob/main/tsconfig.json |
| yarn.lock | https://github.com/lacrypta/lottery/blob/main/yarn.lock |
| yarn.lock | https://github.com/lacrypta/lottery/blob/main/yarn.lock |
| README | https://github.com/lacrypta/lottery |
| License | https://github.com/lacrypta/lottery |
| https://github.com/lacrypta/lottery#lottery |
| General Concepts | https://github.com/lacrypta/lottery#general-concepts |
| Quick Start | https://github.com/lacrypta/lottery#quick-start |
| Getting the Lottery out of the Way | https://github.com/lacrypta/lottery#getting-the-lottery-out-of-the-way |
| Creating a New Lottery | https://github.com/lacrypta/lottery#creating-a-new-lottery |
| Querying Lottery Winners | https://github.com/lacrypta/lottery#querying-lottery-winners |
| A Lottery's Configuration | https://github.com/lacrypta/lottery#a-lotterys-configuration |
| Non-persisted Interface | https://github.com/lacrypta/lottery#non-persisted-interface |
| Persisted Interface | https://github.com/lacrypta/lottery#persisted-interface |
| Algorithmic Details | https://github.com/lacrypta/lottery#algorithmic-details |
| The Random Bits Generator | https://github.com/lacrypta/lottery#the-random-bits-generator |
| The "Fast Dice Roller | https://github.com/lacrypta/lottery#the-fast-dice-roller |
| The Fisher-Yates Selector | https://github.com/lacrypta/lottery#the-fisher-yates-selector |
| Tips & Tricks | https://github.com/lacrypta/lottery#tips--tricks |
| Progressive Results | https://github.com/lacrypta/lottery#progressive-results |
| Non-Uniform Probabilities | https://github.com/lacrypta/lottery#non-uniform-probabilities |
| Generate & then Commit | https://github.com/lacrypta/lottery#generate--then-commit |
| https://github.com/lacrypta/lottery#general-concepts |
| Random Bits Generator | https://github.com/lacrypta/lottery#the-random-bits-generator |
| Quick Start | https://github.com/lacrypta/lottery#quick-start |
| https://github.com/lacrypta/lottery#quick-start |
| 1 | https://github.com/lacrypta/lottery#user-content-fn-cast-01db5c90f07530fd7279a65bf45e2e37 |
| PolygonScan > Contract | https://polygonscan.com/address/0x1842d9456dfD1f785F69Df789150481af941b2b9 |
| https://github.com/lacrypta/lottery#getting-the-lottery-out-of-the-way |
| simulate(bytes32,uint256,string[]) | https://polygonscan.com/address/0x1842d9456dfD1f785F69Df789150481af941b2b9#readContract#F5 |
| https://github.com/lacrypta/lottery#creating-a-new-lottery |
| create(string,bytes32,uint256,string[]) | https://polygonscan.com/address/0x1842d9456dfD1f785F69Df789150481af941b2b9#writeContract#F2 |
| https://github.com/lacrypta/lottery#querying-lottery-winners |
| winners(string) | https://polygonscan.com/address/0x1842d9456dfD1f785F69Df789150481af941b2b9#readContract#F6 |
| https://github.com/lacrypta/lottery#a-lotterys-configuration |
| below | https://github.com/lacrypta/lottery#tips--tricks |
| build(bytes32,uint256,string[]) | https://polygonscan.com/address/0x1842d9456dfD1f785F69Df789150481af941b2b9#readContract#F1 |
| https://github.com/lacrypta/lottery#non-persisted-interface |
| simulate(tuple) | https://polygonscan.com/address/0x1842d9456dfD1f785F69Df789150481af941b2b9#readContract#F4 |
| simulate(bytes32,uint256,string[]) | https://polygonscan.com/address/0x1842d9456dfD1f785F69Df789150481af941b2b9#readContract#F5 |
| https://github.com/lacrypta/lottery#persisted-interface |
| non-persisted one | https://github.com/lacrypta/lottery#non-persisted-interface |
| https://github.com/lacrypta/lottery#algorithmic-details |
| https://github.com/lacrypta/lottery#the-random-bits-generator |
| 2 | https://github.com/lacrypta/lottery#user-content-fn-concatenation-01db5c90f07530fd7279a65bf45e2e37 |
| 3 | https://github.com/lacrypta/lottery#user-content-fn-modulus-01db5c90f07530fd7279a65bf45e2e37 |
| https://github.com/lacrypta/lottery#the-fast-dice-roller |
| 4 | https://github.com/lacrypta/lottery#user-content-fn-modulo-bias-01db5c90f07530fd7279a65bf45e2e37 |
| Optimal Discrete Uniform Generation from Coin Flips, and Applications --- Jérémie Lumbroso (2013) | https://arxiv.org/pdf/1304.1916 |
| https://github.com/lacrypta/lottery#the-fisher-yates-selector |
| https://github.com/lacrypta/lottery/blob/main/assets/swap1.png |
| https://github.com/lacrypta/lottery/blob/main/assets/swap2.png |
| https://github.com/lacrypta/lottery/blob/main/assets/swap3.png |
| https://github.com/lacrypta/lottery/blob/main/assets/swap4.png |
| Fisher--Yates Shuffle | https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle |
| Fisher--Yates Shuffle | https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle |
| https://github.com/lacrypta/lottery#tips--tricks |
| https://github.com/lacrypta/lottery#progressive-results |
| https://github.com/lacrypta/lottery#non-uniform-probabilities |
| above | https://github.com/lacrypta/lottery#progressive-results |
| below | https://github.com/lacrypta/lottery#generate--then-commit |
| https://github.com/lacrypta/lottery#generate--then-commit |
| above | https://github.com/lacrypta/lottery#non-uniform-probabilities |
| Wikipedia > Alice and Bob | https://en.wikipedia.org/wiki/Alice_and_Bob#Cast_of_characters |
| ↩ | https://github.com/lacrypta/lottery#user-content-fnref-cast-01db5c90f07530fd7279a65bf45e2e37 |
| ↩ | https://github.com/lacrypta/lottery#user-content-fnref-concatenation-01db5c90f07530fd7279a65bf45e2e37 |
| ↩ | https://github.com/lacrypta/lottery#user-content-fnref-modulus-01db5c90f07530fd7279a65bf45e2e37 |
| Wikipedia > Fisher--Yates shuffle > Modulo bias | https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#Modulo_bias |
| ↩ | https://github.com/lacrypta/lottery#user-content-fnref-modulo-bias-01db5c90f07530fd7279a65bf45e2e37 |
|
Readme
| https://github.com/lacrypta/lottery#readme-ov-file |
|
View license
| https://github.com/lacrypta/lottery#License-1-ov-file |
| Please reload this page | https://github.com/lacrypta/lottery |
|
Activity | https://github.com/lacrypta/lottery/activity |
|
Custom properties | https://github.com/lacrypta/lottery/custom-properties |
|
0
forks | https://github.com/lacrypta/lottery/forks |
|
Report repository
| https://github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2Flacrypta%2Flottery&report=lacrypta+%28user%29 |
| Releases
6 | https://github.com/lacrypta/lottery/releases |
|
v0.0.7
Latest
Nov 8, 2022
| https://github.com/lacrypta/lottery/releases/tag/v0.0.7 |
| + 5 releases | https://github.com/lacrypta/lottery/releases |
| Packages
0 | https://github.com/orgs/lacrypta/packages?repo_name=lottery |
| Please reload this page | https://github.com/lacrypta/lottery |
| Please reload this page | https://github.com/lacrypta/lottery |
| Contributors | https://github.com/lacrypta/lottery/graphs/contributors |
| Please reload this page | https://github.com/lacrypta/lottery |
|
Solidity
78.3%
| https://github.com/lacrypta/lottery/search?l=solidity |
|
TypeScript
13.2%
| https://github.com/lacrypta/lottery/search?l=typescript |
|
Shell
8.5%
| https://github.com/lacrypta/lottery/search?l=shell |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |