Main Content

randtool

Interactive random number generation

Syntax

randtool

Description

randtool opens the Random Number Generation Tool.

The Random Number Generation Tool is a graphical user interface that generates random samples from specified probability distributions and displays the samples as histograms. Use the tool to explore the effects of changing parameters and sample size on the distributions.

Histogram plot illustrating parameter values and controls.

Start by selecting a distribution, then enter the desired sample size.

You can also

  • Use the controls at the bottom of the window to set parameter values for the distribution and to change their upper and lower bounds.

  • Draw another sample from the same distribution, with the same size and parameters.

  • Export the current sample to your workspace. A dialog box enables you to provide a name for the sample.

randttool does not provide printing functionality in MATLAB® Online™.

Version History

Introduced before R2006a