fix print for random