what code is represented by Random in embed.color

I am interested in which algorithm is represented by Random in Embed Builder().setColor('Random') in d.js. But I can't find it on github
5 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
monbrey
monbrey3y ago
GitHub
discord.js/Util.js at 7b8966bca156db79933403289741893a6e10ccd5 · di...
A powerful JavaScript library for interacting with the Discord API - discord.js/Util.js at 7b8966bca156db79933403289741893a6e10ccd5 · discordjs/discord.js
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
monbrey
monbrey3y ago
Basically just Math.floor(Math.random() * (0xffffff + 1));
-
-OP3y ago
thx on the internet I found another way to make a random hex color
'#' + Math.random().toString(16).slice(-6)
'#' + Math.random().toString(16).slice(-6)
but this is something like a way for a string
Want results from more Discord servers?
Add your server