please can anyone help me with the code on how to generate pin.

What do you mean by "Pin"?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.