Generates a random PIN: a string containing random digits.
The result is generated using the cryptographically secure random number generator.
After evaluation, the codebook is saved to the disk. Therefore, the generated PIN will also be stored.
pin(length?)
length optional
The length of PIN to generate. If not specified, the result will contain 6 digits.
A string containing a random PIN.
random.pin()
"523247"
random.pin(4)
"1983"