export const randomString=(len=32)=>{ let strVals='ABCDEFGHIJKLMNPQRSTUVWXYZabcdefghijklmnpqrstuvwxyz123456789' let maxLen=strVals.length let randomStr='' for (let i = 0; i < len; i++) { randomStr+=strVals.charAt(Math.floor(Math.random()*maxLen)) } return randomStr }
@state code:string=''
aboutToAppear(){
this.code=randomString(4)
}