• This function generates an array of random hex color codes.

    Parameters

    • numberOfColors: number

      The number of random colors to generate.

    Returns string[]

    An array of random color hex codes.

    Example

    // Generate three random colors
    const colors = PickColor(3);
    console.log(colors); // ["#6a5acd", "#8b008b", "#cd5c5c"]

Generated using TypeDoc