{"id":21381097,"url":"https://github.com/tacheometry/rbxts-randomstring","last_synced_at":"2025-03-16T10:43:34.197Z","repository":{"id":47284734,"uuid":"322980634","full_name":"tacheometry/rbxts-randomstring","owner":"tacheometry","description":"Generate random strings from a list of strings/characters (for Roblox-TS).","archived":false,"fork":false,"pushed_at":"2021-09-04T20:35:15.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T23:48:32.033Z","etag":null,"topics":["lua","random","roblox","roblox-lua","roblox-ts","string"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@rbxts/randomstring","language":"Lua","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/tacheometry.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-12-20T02:50:20.000Z","updated_at":"2022-02-13T23:36:06.000Z","dependencies_parsed_at":"2022-08-28T16:23:35.583Z","dependency_job_id":null,"html_url":"https://github.com/tacheometry/rbxts-randomstring","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tacheometry%2Frbxts-randomstring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tacheometry%2Frbxts-randomstring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tacheometry%2Frbxts-randomstring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tacheometry%2Frbxts-randomstring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tacheometry","download_url":"https://codeload.github.com/tacheometry/rbxts-randomstring/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243857996,"owners_count":20359259,"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":["lua","random","roblox","roblox-lua","roblox-ts","string"],"created_at":"2024-11-22T10:44:16.615Z","updated_at":"2025-03-16T10:43:34.144Z","avatar_url":"https://github.com/tacheometry.png","language":"Lua","readme":"# [@rbxts/randomstring](https://www.npmjs.com/package/@rbxts/randomstring)\nGenerate random strings from a list of strings/characters.\n\n### API\n```ts\nrandomstring(length?: number, entries?: string[], separator?: string) → string\n```\n`length`: How many random entries to use. Defaults to 5.\n\n`entries`: What strings to pick randomly from. By default, this is equal to characters a-Z 0-9.\n\n`separator`: What string to use to concatenate randomly picked `entries`. By default, this is `\"\"`. Example: `\"-\"` as a separator outputs strings like `\"a-Z-9-b-F\"`.\n\n### Examples\n#### Matchmaking game IDs\nSimply using the module with the predefined parameters\n```ts\nrandomstring()\n```\noutputs sequences similar to `TqKlf`, `M4Zvn`, `u6X8F`, which could be used as identifiers for ongoing matches in your game.\n\n#### RoVer verification code clone\nYou could recreate the way [RoVer](https://github.com/evaera/RoVer) hands out codes for verifying users by inputting the following parameters:\n```ts\nrandomstring(20, \u003cenglish dictionary\u003e, \" \")\n```\n→ `magenta maroon yellow red pink very purple pink blue lavender red maroon maroon yellow gray dark really teal`","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftacheometry%2Frbxts-randomstring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftacheometry%2Frbxts-randomstring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftacheometry%2Frbxts-randomstring/lists"}