Random Integer Generator

This program quickly outputs n random integers in the specified range from a to b.

Download
Download

You are now following this Submission

Cite As

Edward Zechmann (2026). Random Integer Generator (https://www.mathworks.com/matlabcentral/fileexchange/18443-random-integer-generator), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Random Number Generation in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0

Updated comments to fix error in the no_duplicates input argument description.

Download
1.0.0

Added an option to plot the integers. The plot is helpful in visually inspecting the distribution of the output.

Download