MCPcopy Create free account
hub / github.com/langchain-ai/langgraph / getRandomColor

Function getRandomColor

docs/docs/tutorials/web-navigation/mark_page.js:102–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100
101 // Function to generate random colors
102 function getRandomColor() {
103 var letters = "0123456789ABCDEF";
104 var color = "#";
105 for (var i = 0; i < 6; i++) {
106 color += letters[Math.floor(Math.random() * 16)];
107 }
108 return color;
109 }
110
111 // Lets create a floating border on top of these elements that will always be visible
112 items.forEach(function (item, index) {

Callers 1

markPageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected