private void sldRandCofStateChanged(ChangeEvent evt) {//GEN-FIRST:event_sldRandCofStateChanged
        lblRand.setText(Double.toString(sldRandCof.getValue()/(double)1000));
        if (mainBoids.simul!=null){
            mainBoids.simul.setRandCof(sldRandCof.getValue()/(double)1000);
        }
    }