add functions to tools pkg. + RandomIndexFromArrayWithFreq + RandomColorFromArrayWithFreq
add functions to tools pkg.
+ RandomIndexFromArrayWithFreq
+ RandomColorFromArrayWithFreq

You can define the probability of the first color or index.
So if you call RandomColorFromArrayWithFreq(colors, 0.9)
This means the first color will be selected 90 out of 100
the rest of the times will be uniformly random between the rest of the colors. #71

taironas/tinygraphs,wspl/tinygraphs,taironas/tinygraphs,wspl/tinygraphs,taironas/tinygraphs,wspl/tinygraphs