question: protected void calculateLoops ( ) { if ( this . minLoops != this . maxLoops ) { Random r = new Random ( ) ; this . numLoops = this . minLoops + r . nextInt ( this . maxLoops - this . minLoops ) ; } else { this . numLoops = this . minLoops ; } }
target:  Method to calculate the number of times to loop playback of this sound