MATLAB: Simulation throwing of two dice

homework

Can someone please help me with this Script?
% Script with 2 dice asks the user for the number of throws
% There is a fault tolerant and n should be between 50 and 1 million
% It then outputs the result as a plot

Best Answer

histogram(sum(randi(6,2,input('number of throws'))));%assuming you want the sum of the dice plotted