mirror of
https://github.com/gizmo4487/O-Bot.git
synced 2025-05-29 19:52:31 -05:00
15 lines
260 B
JavaScript
15 lines
260 B
JavaScript
function randomHex() {
|
|
let hex = "";
|
|
let randNum = 0;
|
|
randNum = Math.floor(Math.random() * Math.floor(41));
|
|
if (randNum < 16) {
|
|
hex = "0" + randNum.toString(16);
|
|
} else {
|
|
hex = randNum.toString(16);
|
|
}
|
|
|
|
return hex;
|
|
}
|
|
|
|
module.exports = { randomHex };
|