{"id":36701434,"url":"https://github.com/kostasdrakonakis/randomizer","last_synced_at":"2026-01-12T11:38:35.582Z","repository":{"id":57725956,"uuid":"171505837","full_name":"kostasdrakonakis/randomizer","owner":"kostasdrakonakis","description":"Initialize random variables assigned to primitive types","archived":false,"fork":false,"pushed_at":"2025-12-30T07:10:19.000Z","size":348,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-02T18:43:41.379Z","etag":null,"topics":["android","android-library","random-number-generators","randomize","randomizer"],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","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/kostasdrakonakis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-02-19T16:09:57.000Z","updated_at":"2025-12-30T07:10:21.000Z","dependencies_parsed_at":"2022-09-02T04:02:40.068Z","dependency_job_id":"e57bb31d-5511-4352-a127-ba27a3ac576d","html_url":"https://github.com/kostasdrakonakis/randomizer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kostasdrakonakis/randomizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kostasdrakonakis%2Frandomizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kostasdrakonakis%2Frandomizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kostasdrakonakis%2Frandomizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kostasdrakonakis%2Frandomizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kostasdrakonakis","download_url":"https://codeload.github.com/kostasdrakonakis/randomizer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kostasdrakonakis%2Frandomizer/sbom","scorecard":{"id":568167,"data":{"date":"2025-08-11","repo":{"name":"github.com/kostasdrakonakis/randomizer","commit":"db911d98a653e36021201c54c50e0d7398ace6ed"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/3 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/android.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":1,"reason":"2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/android.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/kostasdrakonakis/randomizer/android.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/android.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/kostasdrakonakis/randomizer/android.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 27 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T15:33:18.875Z","repository_id":57725956,"created_at":"2025-08-20T15:33:18.875Z","updated_at":"2025-08-20T15:33:18.875Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T10:58:46.209Z","status":"ssl_error","status_checked_at":"2026-01-12T10:58:42.742Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["android","android-library","random-number-generators","randomize","randomizer"],"created_at":"2026-01-12T11:38:35.520Z","updated_at":"2026-01-12T11:38:35.571Z","avatar_url":"https://github.com/kostasdrakonakis.png","language":"Kotlin","readme":"Randomizer [![Randomizer Build](https://github.com/kostasdrakonakis/randomizer/actions/workflows/android.yml/badge.svg?branch=master)](https://github.com/kostasdrakonakis/randomizer/actions/workflows/android.yml)\n\n\u003cp align=\"center\"\u003e\u003ca href='https://ko-fi.com/Z8Z4XWSM' target='_blank'\u003e\u003cimg height='36' style='border:0px;height:36px;' src='https://az743702.vo.msecnd.net/cdn/kofi4.png?v=2' border='0' alt='Buy Me a Coffee at ko-fi.com' /\u003e\u003c/a\u003e\u003c/p\u003e\n\nInitialize variables with Random values\n\nDownload\n--------\n\nDownload the latest JAR or grab via Maven:\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.kostasdrakonakis\u003c/groupId\u003e\n  \u003cartifactId\u003erandomizer\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.kostasdrakonakis\u003c/groupId\u003e\n  \u003cartifactId\u003erandomizer-compiler\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nor via Gradle: \n\nJava:\n```groovy\nimplementation 'com.kostasdrakonakis:randomizer:1.0.1'\nannotationProcessor 'com.kostasdrakonakis:randomizer-compiler:1.0.1'\n```\n\nKotlin:\n```groovy\nimplementation 'com.kostasdrakonakis:randomizer:1.0.1'\nkapt 'com.kostasdrakonakis:randomizer-compiler:1.0.1'\n```\nUsage\n-----\n\nYou can use it in Activities or Fragments like:\n\nJava\n\n```java\npublic class MainActivity extends AppCompatActivity {\n    \n    @RandomInt\n    int withoutRange;\n    \n    @RandomInt(minValue = 10, maxValue = 100)\n    int withRange;\n    \n    @RandomString\n    String normalString;\n    \n    @RandomString(uuid = true)\n    String uuidString;\n\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.activity_main);\n        Randomizer.bind(this);\n    }\n}\n```\n\nKotlin\n\n```kotlin\nclass MainActivity : AppCompatActivity() {\n\n    @RandomInt\n    @JvmField var withoutRange: Int = 0\n    \n    @RandomInt(minValue = 10, maxValue = 100)\n    @JvmField var withRange: Int = 0\n    \n    @RandomString\n    lateinit var normalString: String\n    \n    @RandomString(uuid = true)\n    lateinit var uuidString: String\n\n    override fun onCreate(savedInstanceState: Bundle?) {\n        super.onCreate(savedInstanceState)\n        Randomizer.bind(this)\n        setContentView(R.layout.activity_main)\n    }\n}\n```\n\nSupported Annotations:\n```text\n@RandomInt // optional values: minValue and maxValue\n@RandomString // optional value: uuid\n@RandomFloat // optional values: minValue and maxValue\n@RandomDouble // optional values: minValue and maxValue\n@RandomChar \n@RandomLong // optional values: minValue and maxValue\n@RandomShort\n```\n\nCHANGELOG\n----\n**v1.0.0**:\n* Add support for int, String, float, char, double, long, short types\n* Add support for initializing with custom range\n\nTODO\n----\n+ Add support for objects\n\nFeel free to submit PR's. Also open to suggestions!\n\nLicense\n-------\n\n Copyright 2018 Kostas Drakonakis\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n","funding_links":["https://ko-fi.com/Z8Z4XWSM'"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkostasdrakonakis%2Frandomizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkostasdrakonakis%2Frandomizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkostasdrakonakis%2Frandomizer/lists"}