{"id":24057959,"url":"https://github.com/alexhart/betgenerator","last_synced_at":"2026-07-02T00:31:14.266Z","repository":{"id":121287774,"uuid":"140152024","full_name":"AlexHart/BetGenerator","owner":"AlexHart","description":"Little F# script to generate random bets","archived":false,"fork":false,"pushed_at":"2018-07-24T09:47:02.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-30T16:23:39.655Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"F#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlexHart.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-08T08:52:47.000Z","updated_at":"2018-07-24T09:57:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"fc181dfd-9a89-448d-b689-cbb2a78a886a","html_url":"https://github.com/AlexHart/BetGenerator","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/AlexHart/BetGenerator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexHart%2FBetGenerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexHart%2FBetGenerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexHart%2FBetGenerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexHart%2FBetGenerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexHart","download_url":"https://codeload.github.com/AlexHart/BetGenerator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexHart%2FBetGenerator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35028642,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-01T02:00:05.325Z","response_time":130,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-09T05:54:39.309Z","updated_at":"2026-07-02T00:31:14.258Z","avatar_url":"https://github.com/AlexHart.png","language":"F#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BetGenerator\n\nThis is a little F# script to generate random bets. Here is inside a fsproj and solution but it was created and usually used from [Linqpad](http://www.linqpad.net/).\n\nIs just this very simple script.\n\n```fsharp\nopen System\n\nlet rnd = new Random()\n\nlet randomNumsInRange xs pickN = \n    xs\n    |\u003e List.mapi(fun i x -\u003e rnd.Next(), x)\n    |\u003e List.sortBy(fun (r, _) -\u003e r)\n    |\u003e List.map snd\n    |\u003e Seq.take (pickN)\n    |\u003e Seq.sort\n    |\u003e Seq.toArray\n\nlet GenerateEuromillones = \n    (randomNumsInRange [1..50] 5, randomNumsInRange [1..12] 2)\n\nlet GeneratePrimitiva = \n    randomNumsInRange[1..49] 6\n\nlet GenerateGordoPrimitiva = \n    (randomNumsInRange [1..54] 5, randomNumsInRange [1..9] 1)\n\nGenerateEuromillones |\u003e printfn \"Euromillones: %A\"\nGeneratePrimitiva |\u003e printfn \"Primitiva: %A\"\nGenerateGordoPrimitiva |\u003e printfn \"Gordo de la primitiva: %A\"\n```\n\nBy default it prints bets for only 3 types of games, but it would be really easy to implement more games.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexhart%2Fbetgenerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexhart%2Fbetgenerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexhart%2Fbetgenerator/lists"}