{"id":32211941,"url":"https://github.com/cellbis/cellbis-random","last_synced_at":"2025-10-22T06:56:49.374Z","repository":{"id":56836557,"uuid":"140688519","full_name":"CellBIS/CellBIS-Random","owner":"CellBIS","description":"Tool for Randomize characters in strings","archived":false,"fork":false,"pushed_at":"2018-08-02T04:35:56.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-22T06:56:43.227Z","etag":null,"topics":["string-manipulation"],"latest_commit_sha":null,"homepage":"","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"artistic-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CellBIS.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","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":"2018-07-12T09:01:47.000Z","updated_at":"2018-08-02T04:35:57.000Z","dependencies_parsed_at":"2022-08-26T14:10:38.477Z","dependency_job_id":null,"html_url":"https://github.com/CellBIS/CellBIS-Random","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/CellBIS/CellBIS-Random","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CellBIS%2FCellBIS-Random","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CellBIS%2FCellBIS-Random/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CellBIS%2FCellBIS-Random/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CellBIS%2FCellBIS-Random/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CellBIS","download_url":"https://codeload.github.com/CellBIS/CellBIS-Random/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CellBIS%2FCellBIS-Random/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280395519,"owners_count":26323517,"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","status":"online","status_checked_at":"2025-10-22T02:00:06.515Z","response_time":63,"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":["string-manipulation"],"created_at":"2025-10-22T06:56:47.900Z","updated_at":"2025-10-22T06:56:49.364Z","avatar_url":"https://github.com/CellBIS.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CellBIS::Random\n\nThe purpose of this module is to randomize characters in strings.\nBefore a random or unrandom character (extract from random), the string\nwill be converted to an array to get an odd/even number of key array.\n\n## How to Install :\nFrom Source :\n```bash\ngit clone -b v0.1 git@github.com:CellBIS/CellBIS-Random.git\nperl Makefile.PL\nmake \u0026\u0026 make test\nmake install \u0026\u0026 make clean\n```\nwith `cpan` command :\n```bash\ncpan -i CellBIS::Random\n```\nwith `cpanm` command :\n```bash\ncpanm CellBIS::Random\n```\n\n# METHODS\n\nThere is four methods `set_string`, `get_result`, `random` and `unrandom`.\n\nSpecifically for `random` and `unrandom` methods, you can use two or three arguments.\nIf using Object Oriented, you can use 2 arguments. But if using Procedural, you can use 3 arguments.\n\n```perl\n# Object Oriented\n# Arguments : \u003cnumber_of_random_odd\u003e, \u003cnumber_of_random_even\u003e\n$rand-\u003erandom(2, 3);\n$rand-\u003eunrandom(2, 3);\n\n# Procedural\n# Arguemnts : \u003cyour_string_to_random\u003e, \u003cnumber_of_random_odd\u003e, \u003cnumber_of_random_even\u003e\nCellBIS::Random-\u003erandom('your string to random', 2, 3);\nCellBIS::Random-\u003eunrandom('result of random to extract', 2, 3);\n```\n\n## set_string\n\nMethod to set up string for Random action.\n\n## get_result\n\nMethod to get result of random character and Extract result of random.\n\n## random\n\nWith `set_string` :\n```perl\nuse CellBIS::Random;\n\nmy $string = 'my string here';\n$rand-\u003eset_string($string);\n\nmy $result_random = $rand-\u003erandom(2, 3);\nprint \"Random Result : $result_random \\n\";\n```\nWithout `set_string` :\n```perl\nmy $result_random = $rand-\u003erandom('my string here', 2, 3);\nprint \"Random Result : $result_random \\n\";\n```\n## unrandom\n\nWith `set_string` :\n```perl\n$rand-\u003eset_string($result_random);\n\nmy $result_unrandom = $rand-\u003eunrandom(2, 3);\nprint \"Extract Random Result : $result_unrandom \\n\";\n```\nWithout `set_string` :\n```perl\nmy $result_unrandom = $rand-\u003eunrandom($rand-\u003e{result}, 2, 3);\nprint \"Extract Random Result : $result_unrandom \\n\";\n```\n# EXAMPLES\n\nExample to using Procedural and Object Oriented\n\n## Procedural\n\nCase 1\n```perl\nuse CellBIS::Random;\n\nmy $result_random = CellBIS::Random-\u003erandom('my string here', 2, 3);\nprint \"Random Result : $result_random \\n\";\n\nmy $extract_random = CellBIS::Random-\u003eunrandom($result_random, 2, 3);\nprint \"Extract Random Result : $extract_random \\n\";\n```\nCase 2\n\n```\nuse CellBIS::Random;\n\nmy $rand = CellBIS::Random-\u003enew();\nmy $result_random = $rand-\u003erandom('my string here', 2, 3);\nprint \"Random Result : $result_random \\n\";\n\nmy $extract_random = $rand-\u003eunrandom($result_random, 2, 3);\nprint \"Extract Random Result : $extract_random \\n\";\n  \n```\n## Object Oriented\n\nCase 1\n\n```perl\nuse CellBIS::Random;\n\nmy $rand = CellBIS::Random-\u003enew();\n\n# For Random\n$rand-\u003eset_string('my string here');\n$rand-\u003erandom(2, 3);\nmy $result_random = $rand-\u003eget_result();\n\nprint \"Random Result : $result_random \\n\";\n\n=====================================================\n\n# For Extract Random\n$rand-\u003eset_string($result_random);\n$rand-\u003eunrandom(2, 3);\nmy $extract_random = $rand-\u003eget_result();\n\nprint \"Extract Random Result : $extract_random \\n\";\n```\n  \nCase 2\n\n```perl\nuse CellBIS::Random;\n\nmy $rand = CellBIS::Random-\u003enew();\n\n# For Random\n$rand-\u003eset_string('my string here');\nmy $result_random = $rand-\u003erandom('my string here', 2, 3);\n\nprint \"Random Result : $result_random \\n\";\n\n=====================================================\n\n# For Extract Random\nmy $extract_random = $rand-\u003eunrandom($result_random, 2, 3);\n\nprint \"Extract Random Result : $extract_random \\n\";\n```\n  \nCase 3\n```perl\nuse CellBIS::Random;\n\nmy $rand = CellBIS::Random-\u003enew();\n\n# For Random\nmy $result_random = $rand-\u003erandom('my string here', 2, 3);\n\nprint \"Random Result : $result_random \\n\";\n\n=====================================================\n\n# For Extract Random\nmy $extract_random = $rand-\u003eunrandom($result_random, 2, 3);\n\nprint \"Extract Random Result : $extract_random \\n\";\n```\n  \n# AUTHOR\n\nAchmad Yusri Afandi, \u003cyusrideb@cpan.org\u003e\n\n# COPYRIGHT AND LICENSE\n\nCopyright (C) 2018 by Achmad Yusri Afandi\n\nThis program is free software, you can redistribute it and/or modify it under the terms of\nthe Artistic License version 2.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcellbis%2Fcellbis-random","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcellbis%2Fcellbis-random","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcellbis%2Fcellbis-random/lists"}