#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 10, 9, 8, 7);

int btn = 3;
int bv;


void setup() {
  lcd.begin(16, 2);
  pinMode(btn, INPUT);
}

void loop() {
  bv = digitalRead(btn);
  if(bv == 1){
    int num = random(1, 7);
    lcd.setCursor(0,0);
    lcd.print(num);
    delay(200);
  }
}