update the random method for future conclusion.
fix last update.