pin method

String pin({
  1. String mask = "####",
})

Returns a random PIN code.

mask is optional mask of pin code. "#" will be changed to digit and "@" will be changed to ascii character. Any provided digits or characters in mask will be left as is (default mask is 4 digits).

Example:

Code().pin(); // "7302"
Code().pin(mask: "@@###"); // "DU728"
Code().pin(mask: "33##"); // "3373"

Implementation

String pin({String mask = "####"}) => Rng.customCode(mask: mask, seed: seed);