Added random2 animation and graphic functions