mirror of
https://github.com/gizmo4487/O-Bot.git
synced 2025-05-30 20:22:31 -05:00
16 lines
337 B
JavaScript
16 lines
337 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 };
|