quickfix for Traj rand