I'm creating a script which creates a random security number for a user, and I'm looking at ways I can complete this.
I need a security number with 7 digits but doesn't contain a 0. but when using rand(1111111,9999999) there is still a possibility of a 0 being inside of that number, I was wondering which loop would be best to check this and what function would I use to check for the existence of a 0 in the string?