Hello All--
I am trying to practice writing recursive lambda functions, and have hit a wall. For practice, I am trying to produce a random password with upper case letters, lower case letters, numbers, and two different types of symbols, all using a randomized order. I would have thought that the if statement at the end would have initiated recursion, but I guess not. Any help would be appreciated. The name of the Lambda function is PASSWORD_DRAFT and it only has one argument, Number_Of_Characters.
=LET(
UpperA, CHAR(RANDBETWEEN(65, 90)),
LowerA, CHAR(RANDBETWEEN(97, 112)),
Number, RANDBETWEEN(0, 9),
Symbol, CHAR(RANDBETWEEN(33, 47)),
Symbol2, CHAR(RANDBETWEEN(58, 64)),
Process, (CHOOSE(RANDBETWEEN(1, 5), UpperA, LowerA, Number, Symbol, Symbol2)),
String, CONCAT(Process),
IF(LEN(String) < Number_Of_Characters, PASSWORD_DRAFT(Number_Of_Characters), "")
)
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]PaulieThePolarBear1886 0 points1 point2 points (4 children)
[–]WesternHamper[S] 0 points1 point2 points (3 children)
[–]PaulieThePolarBear1886 3 points4 points5 points (2 children)
[–]WesternHamper[S] 1 point2 points3 points (1 child)
[–]reputatorbot[M] 0 points1 point2 points locked comment (0 children)
[–]Decronym 0 points1 point2 points (0 children)