fix getrandomtip accessing out of bounds index

rand(0,3) can return 3, but we have only 3 items in array: 0,1,2