title: In MATLAB, how can I do the sample discrete distribution?
body: <p>I have a probability, in which I have three numbers, 1, 2, and 3. Each of them are selected in 1/3 chance.</p>
  
  <p>How can I make a function for this in MATLAB?</p>