fix: use random generator for generating weights instead of rand()

otherwise calling Generator::digraph with same parameter twice will not produce the same graphs