function [d1,d2]=roll2dice % [d1 d2]=roll2dice % Rolls two dice to give two random numbers from 1-6 d1=1+fix(6*rand); d2=1+fix(6*rand);