{"version":"1.0","type":"rich","title":"random light or dark HEX color fn","description":"This example demonstrates a utility function that generates random hexadecimal color strings, either light or dark depending on a boolean argument. It shows a simple technique for constraining color brightness by selecting characters only from specific hex ranges—`a` through `f` for light colors and `0` through `5` for dark ones. The function builds a six-character string by repeatedly picking a random index from the appropriate key array using JavaScript’s `Math.random` and `Math.floor`. No external libraries are used; the code relies solely on native JavaScript string concatenation and array indexing to produce the final color value.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-b374566fc03a7dd40233?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}