random

by egoregor

JavaScript

var rand;
for (var  i= 0; i<10; i++)
{
   rand = math.floor((math.random() * 6) + 1);
   document.write(rand);
}