{"id":17491779,"url":"https://github.com/jacob-ian/deno_random_bigint","last_synced_at":"2026-05-02T14:34:16.365Z","repository":{"id":62421464,"uuid":"277066830","full_name":"jacob-ian/deno_random_bigint","owner":"jacob-ian","description":"Generate a random BigInt by bit-length with Deno.","archived":false,"fork":false,"pushed_at":"2020-07-17T07:59:35.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-26T06:52:09.200Z","etag":null,"topics":["cryptography","deno","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/jacob-ian.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}},"created_at":"2020-07-04T08:04:59.000Z","updated_at":"2022-05-25T11:22:00.000Z","dependencies_parsed_at":"2022-11-01T17:32:27.892Z","dependency_job_id":null,"html_url":"https://github.com/jacob-ian/deno_random_bigint","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacob-ian%2Fdeno_random_bigint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacob-ian%2Fdeno_random_bigint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacob-ian%2Fdeno_random_bigint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacob-ian%2Fdeno_random_bigint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jacob-ian","download_url":"https://codeload.github.com/jacob-ian/deno_random_bigint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246068265,"owners_count":20718501,"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":["cryptography","deno","typescript"],"created_at":"2024-10-19T08:04:57.466Z","updated_at":"2026-05-02T14:34:16.319Z","avatar_url":"https://github.com/jacob-ian.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deno Random BigInt Generator 🦕\nA random integer generator made for Deno. \n\nIt can generate a random integer with a `bigint` type from either:\n* a desired bit-length (e.g. 2048-bit); or\n* a desired range.\n\n*Created by Jacob Ian Matthews - [Website](https://jacobianmatthews.com)  | [GitHub](https://github.com/jacob-ian)*\n\n## Usage\n\n### Generate a Random BigInt from a Bit Length\n```typescript\nimport { randomBigIntBits } from \"https://deno.land/x/random_bigint/mod.ts\";\n\n// Choose a bit-length\nconst bitlength = 2048;\n\n// Create the random bigint\nconst random = randomBigIntBits(bitlength); // or randomBigInt(2048)\n```\n### Generate a Random BigInt from a Range\n```typescript\nimport { randomBigIntRange } from \"https://deno.land/x/random_bigint/mod.ts\"\n\n// Choose a minimum and maximum integer value\nconst min = 1n;\nconst max = 2**2048n;\n\n// Generate the bigint\nconst random = randomBigIntRange(min, max);\n```\n\n## License\nMIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacob-ian%2Fdeno_random_bigint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacob-ian%2Fdeno_random_bigint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacob-ian%2Fdeno_random_bigint/lists"}