MATLAB: Perform same command separately on all items in a matrix

arraysrandomization

Hi gang,
I have a pretty basic question that I can't figure out the answer to. I need to randomly assign a value 2, 3, or 4 (in this case its an orientation) to twelve different variables B1-B12, and I would like to avoid doing this:
B1 = randsample(Orient([2 3 4]),1);
B2 = randsample(Orient([2 3 4]),1);
B3 = randsample(Orient([2 3 4]),1);
B4 = randsample(Orient([2 3 4]),1);
etc...
I essentially just need a more efficient way of doing this. Would it be possible to set up an array B1-B12 and apply the randsample command to the entire array? Thanks in advance.
Josh