#include <LiquidCrystal.h>
#include<stdlib.h>
LiquidCrystal lcd(12,11,10,9,8,7);
void setup()
{
lcd.begin(16,2);
lcd.setCursor(0,0);
}
void loop()
{
int i=0,speed=0;
while(1)
{
if(roll_sw>>)
lcd.clear();
delay(100);
speed=(rand()%6)+1;
srand(i++);
lcd.setCursor(speed,0);
}