Hi, I'm trying to simulate a discrete system that has a random input, but I can't figure out how to make the input signal.

Basically, I want to create a vector whose entries are randomly selected from a list of possible values, each with an associated probability.

Is there a simple way of doing this in Matlab?