Last active
November 9, 2021 20:21
-
-
Save starve-l/b9951a563ac65226fa164a6ed5375139 to your computer and use it in GitHub Desktop.
Returns an URI string leading to a random `prnt.sc` post. Works est. 9/10 times.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let char: String = "abcdefghijklmnopqrstuvwxyz0123456789"; | |
let randomImage = () => { | |
let str: String = ""; | |
for (let i = 0; i < 6; i++) { | |
str += char.charAt(Math.floor(Math.random() * char.length)); | |
} | |
return `https://prnt.sc/${str}`; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment