Edit in JSFiddle

alert("サイコロを振ります、1から6のいずれかの整数の目が出ます");
var a = Math.floor (Math.random()*6)+1;
alert("サイコロの目は「" + a + "」です");