{"id":23491919,"url":"https://github.com/jonathanstarup/random","last_synced_at":"2026-01-23T18:31:23.134Z","repository":{"id":237547530,"uuid":"794704916","full_name":"JonathanStarup/random","owner":"JonathanStarup","description":"A regioned random library for Flix","archived":false,"fork":false,"pushed_at":"2024-05-01T19:30:52.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T06:48:38.963Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JonathanStarup.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2024-05-01T19:23:49.000Z","updated_at":"2024-05-01T19:30:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"5f1c4218-6f81-4bef-ac2d-4a2f01875eaf","html_url":"https://github.com/JonathanStarup/random","commit_stats":null,"previous_names":["jonathanstarup/random"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/JonathanStarup/random","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonathanStarup%2Frandom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonathanStarup%2Frandom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonathanStarup%2Frandom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonathanStarup%2Frandom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JonathanStarup","download_url":"https://codeload.github.com/JonathanStarup/random/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonathanStarup%2Frandom/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28697428,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T17:25:48.045Z","status":"ssl_error","status_checked_at":"2026-01-23T17:25:47.153Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2024-12-25T01:43:29.780Z","updated_at":"2026-01-23T18:31:22.327Z","avatar_url":"https://github.com/JonathanStarup.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Regioned Random Library\n\nA version of\n`https://github.com/flix/flix/blob/master/main/src/library/Random.flix` with\nregions instead of `IO`. This is correct since, after seed choice, a random\nobject is just a regular iterator.\n\n## Docs\n\n```scala\nenum Jls.Random[_r: Region]\n\ndef Jls.Random.freshWithSystemSeed(_rc: Region[r]): Random[r] \\ r + IO\n\ndef Jls.Random.fresh(_rc: Region[r], s: Int64): Random[r] \\ r\n\ndef Jls.Random.oneOf(ran: Random[r1], a: Array[a, r2]): Option[a] \\ r1 + r2\n\ndef Jls.Random.nextBool(ran: Random[r]): Bool \\ r\n\ndef Jls.Random.nextFloat32(ran: Random[r]): Float32 \\ r\n\ndef Jls.Random.nextFloat64(ran: Random[r]): Float64 \\ r\n\ndef Jls.Random.nextInt32(ran: Random[r]): Int32 \\ r\n\ndef Jls.Random.nextInt64(ran: Random[r]): Int64 \\ r\n\ndef Jls.Random.nextGaussian(ran: Random[r]): Float64 \\ r\n\ndef Jls.Random.nextNatWithMax(ran: Random[r], m: Int32): Int32 \\ r\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathanstarup%2Frandom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonathanstarup%2Frandom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathanstarup%2Frandom/lists"}