map2loop.mapdata.generate_random_hex_colors#
- map2loop.mapdata.generate_random_hex_colors(n: int, seed: int = None) list #
Generate a list of unique random hex color codes.
- Parameters:
n (int) – The number of random hex color codes to generate.
- Returns:
list – A list of randomly generated hex color codes as strings.
Example
>>> generate_random_hex_colors(3) ['#1a2b3c', '#4d5e6f', '#7f8e9d']