function createRound(a, b) {
        aoff = (((a.power + a.speed + a.offense) * (a.stamina / 100)) / 2) * ran() / 100;
        boff = (((b.power + b.speed + b.offense) * (b.stamina / 100)) / 2) * ran() / 100;
        adef = ((a.defense * ran()) + a.chin) / 100;
        bdef = ((b.defense * ran()) + b.chin) / 100;
        aovr = Math.round(aoff + adef);
        bovr = Math.round(boff + bdef);
    }
//function to generate stats newly each round
function to generate stats newly each round
function to generate stats newly each round
function createRound(a, b) {
        aoff = (((a.power + a.speed + a.offense) * (a.stamina / 100)) / 2) * ran() / 100;
        boff = (((b.power + b.speed + b.offense) * (b.stamina / 100)) / 2) * ran() / 100;
        adef = ((a.defense * ran()) + a.chin) / 100;
        bdef = ((b.defense * ran()) + b.chin) / 100;
        aovr = Math.round(aoff + adef);
        bovr = Math.round(boff + bdef);
    }
function createRound ( a , b ) { aoff = ( ( ( a . power + a . speed + a . offense ) * ( a . stamina / 100 ) ) / 2 ) * ran ( ) / 100 ; boff = ( ( ( b . power + b . speed + b . offense ) * ( b . stamina / 100 ) ) / 2 ) * ran ( ) / 100 ; adef = ( ( a . defense * ran ( ) ) + a . chin ) / 100 ; bdef = ( ( b . defense * ran ( ) ) + b . chin ) / 100 ; aovr = Math . round ( aoff + adef ) ; bovr = Math . round ( boff + bdef ) ; }
function to generate stats newly each round
function to generate stats newly each round