You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Description: sumrandi uses randi to generate random numbers with a given
sum
R = sumrandi(IMIN,IMAX,N,S) returns an N-by-N matrix containing pseudorandom
integer values drawn from the discrete uniform distribution on IMIN:IMAX
then generates new numbers such that their sum is S.
Cite As
Jonathan (2026). Random Integers with Given Sum (https://www.mathworks.com/matlabcentral/fileexchange/121742-random-integers-with-given-sum), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0 (1.3 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0 |
