{"id":17992948,"url":"https://github.com/leostera/random","last_synced_at":"2025-10-18T12:47:53.030Z","repository":{"id":223040351,"uuid":"759159604","full_name":"leostera/random","owner":"leostera","description":"Easy-to-use, cryptographically safe random data for OCaml","archived":false,"fork":false,"pushed_at":"2024-04-15T21:43:03.000Z","size":7,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-10T22:51:38.195Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"OCaml","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/leostera.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-02-17T20:09:27.000Z","updated_at":"2024-03-10T22:56:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"69157d2b-a0ac-418c-8d70-142e8b263bdc","html_url":"https://github.com/leostera/random","commit_stats":null,"previous_names":["leostera/random"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leostera%2Frandom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leostera%2Frandom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leostera%2Frandom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leostera%2Frandom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leostera","download_url":"https://codeload.github.com/leostera/random/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247332545,"owners_count":20921853,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-10-29T20:09:42.475Z","updated_at":"2025-10-18T12:47:47.980Z","avatar_url":"https://github.com/leostera.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# random\n\nEasy to use, cryptographically safe random data generators. Just call `Random.\u003ctype\u003e`:\n\n```ocaml\nlet size = 2112\n\n(* random numbers *)\nlet random_int8 = Random.int8 ()\nlet random_int16 = Random.int16 ()\nlet random_int32 = Random.int32 ()\nlet random_int64 = Random.int64 ()\nlet random_int_up_to_2112 = Random.int ~max:2112\nlet random_float_up_to_69_420 = Random.float ~max:69.420\n\n(* random strings and chars *)\nlet random_char = Random.char ()\nlet random_alpha_num = Random.alphanum ()\nlet random_string = Random.string size\nlet random_bytes = Random.bytes size\n\n(* sequences *)\nlet infinite_number_sequence = Random.(seq int)\nlet infinite_char_sequence = Random.(seq char)\n\n(* lists *)\nlet list_of_10_ints = Random.(list int 10)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleostera%2Frandom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleostera%2Frandom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleostera%2Frandom/lists"}