added random function in tips button