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;
  }
}

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 ; } }
method to calculate the number of times to loop playback of this sound
