Generate a random integer
☆92Sep 15, 2025Updated last year
Alternatives and similar repositories for random-int
Users that are interested in random-int are comparing it to the libraries listed below. We may earn a commission when you buy through links labeled 'Ad' on this page.
Sorting:
- Generate a random float☆37Apr 18, 2021Updated 5 years ago
- Generate random numbers that are consecutively unique☆119Sep 18, 2026Updated last month
- Get a random key from an object☆18Jul 2, 2024Updated 2 years ago
- Get a random property from an object☆15Jul 2, 2024Updated 2 years ago
- Get a random item from an array☆57Mar 28, 2022Updated 4 years ago
- Deploy on Railway without the complexity - Free Credits Offer • AdConnect your repo and Railway handles the rest with instant previews. Quickly provision container image services, databases, and storage volumes.
- [DEPRECATED] Promisify a result-first callback function.☆10Jun 5, 2017Updated 9 years ago
- ES2015 Math.acosh() ponyfill☆14Apr 7, 2021Updated 5 years ago
- Convert matching single-quotes to double-quotes: `I 'love' unicorns` → `I "love" unicorns`☆24Sep 18, 2026Updated last month
- Round a number to a specific number of decimal places: 1.234 → 1.2☆162Sep 17, 2025Updated last year
- Left pad each line in a string☆20Sep 18, 2026Updated last month
- ES2015 Math.imul() ponyfill☆11Oct 30, 2023Updated 3 years ago
- Remove or replace part of a string like Array#splice☆24Apr 15, 2021Updated 5 years ago
- Modify the filename in a path☆17Sep 18, 2026Updated last month
- Check if a number is in a given range☆22Jan 23, 2021Updated 5 years ago
- Deploy to Railway using AI coding agents - Free Credits Offer • AdUse Claude Code, Codex, OpenCode, and more. Autonomous software development now has the infrastructure to match with Railway.
- Get the path to the user home directory☆13Apr 9, 2021Updated 5 years ago
- ES2015 Math.hypot() ponyfill☆12Apr 7, 2021Updated 5 years ago
- Check if a number is a redirect HTTP status code☆25Sep 18, 2026Updated last month
- Get the maximum permitted length of a path of a Unix domain socket☆14Aug 16, 2021Updated 5 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆24Sep 18, 2026Updated last month
- Strip UTF-8 byte order mark (BOM)☆22Sep 15, 2025Updated last year
- Check if a file path is an archive file☆15Apr 30, 2024Updated 2 years ago
- Get the number of days in a month☆27Oct 18, 2021Updated 5 years ago
- ☆20Aug 13, 2021Updated 5 years ago
- AI Agents on DigitalOcean Gradient AI Platform • AdBuild production-ready AI agents using customizable tools or access multiple LLMs through a single endpoint. Create custom knowledge bases or connect external data.
- Check if a value is a function☆29May 3, 2021Updated 5 years ago
- Include only certain items in an array☆19Jun 13, 2025Updated last year
- Convert a time string to seconds: '0017' → 1337☆37May 3, 2021Updated 5 years ago
- Synchronously write a file and create its ancestor directories if needed☆14May 26, 2019Updated 7 years ago
- Check if a filepath is a Markdown file☆22May 4, 2021Updated 5 years ago
- Strip a path from a path☆18Aug 18, 2021Updated 5 years ago
- Find multiple RegExp matches in a string☆90Sep 18, 2026Updated last month
- Get the number of days in a year☆25Apr 21, 2021Updated 5 years ago
- Clone and modify a RegExp instance☆24Oct 13, 2026Updated 3 weeks ago
- Deploy to Railway using AI coding agents - Free Credits Offer • AdUse Claude Code, Codex, OpenCode, and more. Autonomous software development now has the infrastructure to match with Railway.
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆19Apr 3, 2024Updated 2 years ago
- Check if a year is a leap year☆21Apr 7, 2021Updated 5 years ago
- Ensure a function is stable, meaning the same input always produces the same output☆16Nov 4, 2023Updated 2 years ago
- Format a date with timezone☆12Oct 6, 2016Updated 10 years ago
- The max amount of milliseconds you can pass to `setTimeout()`☆27Apr 7, 2021Updated 5 years ago
- Get the avatar of a GitHub user☆21Oct 14, 2021Updated 5 years ago
- Strip shebang (eg. #!/bin/sh) from a string☆11Aug 18, 2021Updated 5 years ago