MATLAB模拟掷骰子。

投掷100次a = fix (unifr nd (1,7,10,10))

投掷1000次a = fix (unifr nd (1,7,10,100))

投掷10000次a = fix (unifr nd (1,7,100,100))

s 1 = sum(A = = 1)/100;

1的百分比

酒吧([S1,S3 S2...])条形图

扔出去,一次画一张