here is a Java-Script code which is generate otp by your requirment digits
Primary LanguageJavaScriptMIT LicenseMIT