Revert "Revert "Revert "Revert "change random funcion""""

This reverts commit 88f9f10315605a4b9604fa293fa0c2922153993d.