I’m trying to have the macro insert 9 random characters with q mix of a-z & 1-9 example: 83bd05hr4 as I have next to no coding knowledge how can I insert this command?
This is the solution un array you can add prefered characters.
Remember to change 25 with total amount of characters added in arrey
{
"Name": "Random_String_With_Array_Customizable",
"CreationDate": "2020-2-23",
"Commands": [
{
"Command": "executeScript_Sandbox",
"Target": "var letters = ['a','b','c','d','e','f','g','h','i','j','k','l', 'm','n','o','p','q','r','s','t','u','w','x','y','z']; var string = ''; for(var i = 0; i < 9; i++){string += letters[parseInt(Math.random() * 25)]}; return string;",
"Value": "v1"
},
{
"Command": "echo",
"Target": "Random Value Is ${v1}",
"Value": "#shownotification"
}
]
}