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

This reverts commit bf0f053631b9ae4364e6d53e4d29a8f12629d6b6.