dummy id
Wed Dec 13 2023 09:07:37 GMT+0000 (Coordinated Universal Time)
Saved by
@davidmchale
#javascript
#dummy
function getRandom10CharString() {
const timestamp = Date.now().toString(36); // Convert timestamp to base 36
const randomString = Math.random().toString(36).substr(2); // Generate a random base 36 string
const combinedString = timestamp + randomString; // Combine the two strings
return combinedString.substr(0, 10); // Return the first 10 characters
}
console.log(getRandom10CharString());
content_copyCOPY
Comments