update random values after changing random generation