Revert "replace rand generation with instance of Random"

This reverts commit 66b14a919f111cf0b8feb1f08485f098e9c14025.
reset seed after ordering