/**
 * Generates a random hex color code with the # prefix.
 * @returns A string representing a random hex color code (e.g. "#1A2B3C").
 */
export function generateRandomHexColor(): string {
    // Generate a random number between 0 and 16777215 (decimal for FFFFFF)
    const randomNumber: number = Math.floor(Math.random() * 16777215);
    
    // Convert the number to a hexadecimal string and pad with zeros if needed
    const hexString: string = randomNumber.toString(16).padStart(6, '0');
    
    // Return the hex color with # prefix
    return `#${hexString}`;
}