|
|
|
|
@ -1,14 +1,14 @@
|
|
|
|
|
const numBeats = Math.ceil(Math.random()*9);
|
|
|
|
|
|
|
|
|
|
let resultString = '';
|
|
|
|
|
const appendages = [ 'lh', 'rh', 'lf', 'rf' ];
|
|
|
|
|
const limbs = [ 'lh', 'rh', 'lf', 'rf' ];
|
|
|
|
|
|
|
|
|
|
for(let appendage of appendages){
|
|
|
|
|
for(let limb of limbs){
|
|
|
|
|
let resultString = '';
|
|
|
|
|
for(let i = 1; i <= numBeats; i++){
|
|
|
|
|
const hit = Math.floor(Math.random()*2);
|
|
|
|
|
if(hit === 1){
|
|
|
|
|
resultString += appendage + ' ';
|
|
|
|
|
resultString += limb + ' ';
|
|
|
|
|
} else {
|
|
|
|
|
resultString += ' ';
|
|
|
|
|
}
|
|
|
|
|
|