Similar to python, is there anyway to generate unique hexa colour code in julia to use in Networkx (using pycall?
python code is like this,
for j in range(5):
rand_colors = [“#”+" ".join([random.choice(“ABCDEF0123456789”) for i in range(6)])]
Similar to python, is there anyway to generate unique hexa colour code in julia to use in Networkx (using pycall?
python code is like this,
for j in range(5):
rand_colors = [“#”+" ".join([random.choice(“ABCDEF0123456789”) for i in range(6)])]
Direct translation of python code:
julia> [ ( "#" * join(rand("ABCDEF0123456789", 6)) ) for _ in 1:5 ]
5-element Vector{String}:
"#1DF4F5"
"#06B8BB"
"#D51E54"
"#F27A78"
"#90E782"