made it possible to supply random seed, prints progress