MCPcopy Index your code
hub / github.com/Detaysoft/react-chat-elements / getRandomColor

Function getRandomColor

example/utils/common.ts:11–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9}
10
11export const getRandomColor = () => {
12 var letters = '0123456789ABCDEF'
13 var color = '#'
14 for (var i = 0; i < 6; i++) {
15 color += letters[Math.floor(Math.random() * 16)]
16 }
17 return color
18}
19
20export const token = () => {
21 return Math.floor((Math.random() * 10) % 10)

Callers 1

MessageTypes.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…