Generate rand duration