https://github.com/thomasbnt/randomize_number
It's just a randomizer of number.
https://github.com/thomasbnt/randomize_number
javascript offline pwa random service-worker
Last synced: about 2 months ago
JSON representation
It's just a randomizer of number.
- Host: GitHub
- URL: https://github.com/thomasbnt/randomize_number
- Owner: thomasbnt
- License: gpl-3.0
- Created: 2019-08-05T21:23:04.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-04T23:03:46.000Z (over 5 years ago)
- Last Synced: 2024-10-18T20:45:04.162Z (7 months ago)
- Topics: javascript, offline, pwa, random, service-worker
- Language: JavaScript
- Homepage: https://thomasbnt.github.io/Randomize_number/
- Size: 232 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.patreon.com/thomasbnt)
[](https://twitter.com/Hyprimort)
[](LICENSE)## I Integrations
> It's just a randomizer of numbers.
```javascript
function Load(min, max) {
min = Math.ceil(min)
max = Math.floor(max)
const out = Math.floor(Math.random() * (max - min + 1)) + min // Randomize !
document.getElementById('random').textContent = out // Get ID 'random' for edit the text context
document.title = out // Edit the title of page
}
```**Randomize_number** is a simple script with PWA ([Manifest](manifest.json) and [init.js for install SW](assets/js/init.js)) and [Service Worker](sw.js).
## II Contributions
Contributions are always welcome! Read the rules for contributions before you can participate.
Please ensure that your pull request complies with the following guidelines:
- Alphabetize your entry.
- Look for previous suggestions before making a new one, as yours can be a duplicate.
- The suggested README files should be beautiful or stand out in some way.
- Make an individual sweater request request for each suggestion.
- New categories or improvements to the existing categorization are welcome.
- Keep descriptions short and simple, but descriptive.
- Start the description with a capital city and end with a stop / complete period.
- Check your spelling and grammar.
- Make sure that your text editor is configured to delete end spaces.Thank you for your suggestions!
- 📣 News : Follow me on [Twitter](https://twitter.com/Hyprimort)
- 📕 Under [GNU GPL v3.0](LICENSE)
- 🔗 Visit my [Website](https://thomasbnt.fr)