Guide: How It Works

floor(random() ร— (max โˆ’ min + 1)) + min

Who Is This Calculator For?

  • Anyone running a raffle or draw
  • Developers testing with sample data

Examples

Random integer between 1 and 6: floor(random() ร— 6) + 1.

Frequently Asked Questions

Is this generator cryptographically secure?

No, it uses standard pseudo-random generation suitable for general-purpose use, not security-sensitive applications.

Are the min and max bounds inclusive?

Yes, both endpoints can be returned.

About the Author

This tool is built and maintained by John Britto, a Full-Stack Developer with over 5 years of experience building secure web applications. Our mission is to provide free, private, and reliable tools for everyone.