Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random Number Generator

A minimal tool that generates a random integer between a specified minimum and maximum value, with input validation.

Live Demo

[https://ifeanyi234.github.io/random-number-generator/]

Screenshots

Default View Error Handling Error Handling Active State
Default Error Error Active

Features

  • Set a custom min and max range
  • Validates empty inputs and invalid ranges
  • Generates inclusive random integers using Math.random()

Tech Stack

HTML, CSS, JavaScript (no frameworks)

What I Learned

  • How Math.random() and Math.floor() work together for integer generation
  • DOM input validation without a library
  • Separating generation logic from display logic

Known Limitations

  • No decimal support — integers only
  • No history of previously generated numbers

What I'd Improve With More Time

  • Copy to clipboard button
  • History of last 5 generated numbers

About

A minimal, distraction-free utility that generates inclusive random integers within a custom-defined range, featuring strict DOM input validation.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages