// Generating two random numbers between 1 and 6
Random rd = new Random();
int n1 = rd.nextInt(6) + 1;
int n2 = rd.nextInt(6) + 1;
Packet p = new Packet();
// Playing the associated sound on the bunny
MessageBlock mb = new MessageBlock(333);
mb.addPlaySoundCommand("broadcast/files/sounds/dice/get.mp3");
mb.addWaitPreviousEndCommand();
mb.addPlaySoundCommand("broadcast/files/sounds/dice/" + n1 + ".mp3");
mb.addWaitPreviousEndCommand();
mb.addPlaySoundCommand("broadcast/files/sounds/dice/" + n2 + ".mp3");
mb.addWaitPreviousEndCommand();
p.addBlock(mb);
p.addBlock(new PingIntervalBlock(1));
this.bunny.addPacket(p);
}