Revert "rand"

This reverts commit c5e3fab6b455de86738860d65e116e9b2cf49c00.