Applications of random-choice method to problems in shock and detonation-wave dynamics