I created this pipe if anyone else finds it useful it’s here, works well for me
newstring =“”;
for (let i = 1; i <= {length}; i++) {
randnum = Math.floor(Math.random() * “{characters}”.length);
newchar = “{characters}”.substring(randnum ,randnum +1);
newstring =newstring+newchar
}