Exemplo n.º 1
0
function randomAlphanumeric(maxBoundary, minBoundary) {
  let result = '';
  while (!result.trim()) {
    result = random.restrictedString([random.CHAR_TYPE.SPACE, random.CHAR_TYPE.LOWERCASE,
      random.CHAR_TYPE.UPPERCASE, random.CHAR_TYPE.NUMERIC], maxBoundary, minBoundary);
  }
  return result;
}
Exemplo n.º 2
0
 this.withSpecialSymbols = function () {
   this.name = random.restrictedString([random.CHAR_TYPE.SPECIAL], 100, 0);
   return this;
 };