ArbRand.m

Arbitrary distribution random number generator.

You are now following this Submission

There are three optional inputs. first two inputs are the output matrix size specification parameters 'rows' and 'cols'. Third and last input is the user specified probability density function. This has to be have a range normalised between 0 and 1.
Default value for both 'rows' and 'cols' is 1. Default value for the probability density function is a monotonous triangular probability density function.

Cite As

2necklaces (2026). ArbRand.m (https://se.mathworks.com/matlabcentral/fileexchange/47412-arbrand-m), 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.5.0.0

House cleaning
Changed description

1.4.0.0

Replaced spline interpolation with linear as discontinuities were causing issues

1.3.0.0

Added Screen shot

1.2.0.0

Updated interpolation of PDF

1.1.0.0

Removed, resolution specification.

1.0.0.0