A minimal tool that generates a random integer between a specified minimum and maximum value, with input validation.
[https://ifeanyi234.github.io/random-number-generator/]
| Default View | Error Handling | Error Handling | Active State |
|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
- Set a custom min and max range
- Validates empty inputs and invalid ranges
- Generates inclusive random integers using Math.random()
HTML, CSS, JavaScript (no frameworks)
- How Math.random() and Math.floor() work together for integer generation
- DOM input validation without a library
- Separating generation logic from display logic
- No decimal support — integers only
- No history of previously generated numbers
- Copy to clipboard button
- History of last 5 generated numbers



