
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

function pincode = keygen siz = 0; while siz ~= a = floor(9rand(1,1)); b = floor(9rand(1,1)); c = floor(9rand(1,1)); d = floor(9rand(1,1)); x = (d1000) + (c100) + (b*10) + a; pincode = num2str(x); siz = length(pincode); end