my-random-num-tom
v1.4.0
Published
Generate random numbers.
Readme
📦 Random Number Generator
A simple TypeScript utility function to generate a random integer between a minimum and maximum value (inclusive).
✨ Features
- 📐 Specify
minandmaxbounds - 🎲 Returns a whole number (integer)
- ✅ Written in TypeScript for type safety
- 🚀 Lightweight and zero dependencies
📥 Installation
You can add this utility to your project manually or publish it as an NPM package.
To install (if published as a package):
npm install my-random-num-tomExample
const number = random(1, 10);
console.log(number); // e.g., 4