complete random function
complete random function