# Password Generator - Calculated value

Question asked by lovelandj on Jul 11, 2018
Latest reply on Jul 11, 2018 by TomHays

Hello,

I have a calculation field that I use to generate a random password.

Is there a way that I can check to make sure it meets the criteria of at least 1 upper case, 1 special character and that the special character is not in the first spot?

Middle("abcdefghjkmnpqrstuvwxyzABCDEFGHJKMNPQRSTUVWXYZ23456789!@#\$%^&*()~+_"; Mod((Int(Random*100)); 68);1)&

Middle("abcdefghjkmnpqrstuvwxyzABCDEFGHJKMNPQRSTUVWXYZ23456789!@#\$%^&*()~+_"; Mod((Int(Random*100)); 68);1)&

Middle("abcdefghjkmnpqrstuvwxyzABCDEFGHJKMNPQRSTUVWXYZ23456789!@#\$%^&*()~+_"; Mod((Int(Random*100)); 68);1)&

Middle("abcdefghjkmnpqrstuvwxyzABCDEFGHJKMNPQRSTUVWXYZ23456789!@#\$%^&*()~+_"; Mod((Int(Random*100)); 68);1)&

Middle("abcdefghjkmnpqrstuvwxyzABCDEFGHJKMNPQRSTUVWXYZ23456789!@#\$%^&*()~+_"; Mod((Int(Random*100)); 68);1)&

Middle("abcdefghjkmnpqrstuvwxyzABCDEFGHJKMNPQRSTUVWXYZ23456789!@#\$%^&*()~+_"; Mod((Int(Random*100)); 68);1)&

Middle("abcdefghjkmnpqrstuvwxyzABCDEFGHJKMNPQRSTUVWXYZ23456789!@#\$%^&*()~+_"; Mod((Int(Random*100)); 68);1)&

Middle("abcdefghjkmnpqrstuvwxyzABCDEFGHJKMNPQRSTUVWXYZ23456789!@#\$%^&*()~+_"; Mod((Int(Random*100)); 68);1)

Thank You

Jeremy