Supplier to generate a Random OTP

 

import java.util.function.*;

class RandomOTP {

  public static void main(String[] args) {
    Supplier<String> s = () -> {
      String otp = " ";
      for (int i = 0; i < 6; i++) {
        otp = otp + (int) (Math.random() * 10);
      }
      return otp;
    };
    System.out.println(s.get());
  }
}

Google Script for Data Entry Form in Google Spreadsheet

// function to validate the entry made by user in user form function validateEntry (){ // declare a variable and referernece of active goog...