UNPKG

lenye_base

Version:

基础方法

8 lines (5 loc) 157 B
'use strict'; function randomColor() { return '#' + ('00000' + (Math.random() * 0x1000000 << 0).toString(16)).slice(-6); } module.exports = randomColor;