סימניה שאני מוצא אותה כשימושית, מחוללת מחרוזות אקראיות, בעבר הייתי משתמש במחוללים מקוונים, אבל כמובן שסימניה לוקאלית יותר נוחה לשימוש.
היא מעתיקה לקליפבורד את המחרוזת באורך הרצוי, וגם מוסיפה לניימספייס הגלובלי את הפונקציה randomString ואפשר להשתמש בה דרך הקונסול
javascript: function randomString(count, numbersOnly = false) {
let randomStringChars = "abcdefghijklmnopqrstuvwxyz0123456789";
if (numbersOnly) randomStringChars = '123456789';
let out = '';
while (count-- > 0) {
out += randomStringChars[Math.floor(randomStringChars.length * Math.random())];
}
return out;
}
(function () {
const length = prompt('אורך מחרוזת רצוי: ', 8);
const input = document.createElement('input');
input.value = randomString(Number(length));
document.body.appendChild(input);
input.select();
document.execCommand("copy");
input.remove();
})();