change random generation to remove problem with seed
save
save
Tests works