{"id":25735618,"url":"https://github.com/bkeating/django-templatetag-randomgen","last_synced_at":"2025-05-07T23:09:18.151Z","repository":{"id":3097235,"uuid":"4122386","full_name":"bkeating/django-templatetag-randomgen","owner":"bkeating","description":"A simple template tag to generate random numbers.","archived":false,"fork":false,"pushed_at":"2012-04-27T05:45:56.000Z","size":115,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T23:09:12.660Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bkeating.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":"2012-04-24T08:10:47.000Z","updated_at":"2025-03-13T16:49:31.000Z","dependencies_parsed_at":"2022-09-09T02:20:41.018Z","dependency_job_id":null,"html_url":"https://github.com/bkeating/django-templatetag-randomgen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkeating%2Fdjango-templatetag-randomgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkeating%2Fdjango-templatetag-randomgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkeating%2Fdjango-templatetag-randomgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkeating%2Fdjango-templatetag-randomgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bkeating","download_url":"https://codeload.github.com/bkeating/django-templatetag-randomgen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252968120,"owners_count":21833252,"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":"2025-02-26T05:31:21.216Z","updated_at":"2025-05-07T23:09:18.124Z","avatar_url":"https://github.com/bkeating.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"django-templatetag-randomgen\n============================\n\nAn easy way to generate random numbers and hashes inside template files.  \ndjango-templatetag-randomgen is a simple front-end to Python's [``random``](http://docs.python.org/library/random.html) module and [``os.urandom``](http://docs.python.org/library/os.html#os.urandom) function.\n\n## Install\n\n1. Add ``django-templatetag-randomgen`` to your ``INSTALLED_APPS`` \n2. Add ``{% load randomgen %}`` to the top of template files you wish to use these tags in.\n\n## Usage\n    \nTo generate a random floating point number between 0 and 1:\n\n    {% randomgen %}                   # e.g. 0.27684734152988466\n    \nTo generate a md5 hash:\n\n    {% randomgen hash %}              # e.g. 522748524ad010358705b6852b81be4c\n\nTo generate a random number between 100 and 1000:\n\n    {% randomgen 100 1000 %}          # e.g. 156\n    \nTo generate a random floating point within a range:\n\n    {% randomgen 100 1000 float %}    # e.g. 241.05597162504844\n\n## Authors\n\nThis template tag was written by [Ben Keating](https://github.com/bkeating/) and [Jon Parrish](https://github.com/jwparrish/).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbkeating%2Fdjango-templatetag-randomgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbkeating%2Fdjango-templatetag-randomgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbkeating%2Fdjango-templatetag-randomgen/lists"}