cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-testbeds/src/main/java/org/cloudsimplus/testbeds/heuristics/DatacenterBrokerHeuristicRunner.java
private int[] createVmPesArray() {
        final UniformDistr random = new UniformDistr(0, VM_PES_NUMBERS.length, getBaseSeed());
        int[] pesArray = new int[VMS_TO_CREATE];
        int totalNumberOfPes = 0;
        for (int i = 0; i < VMS_TO_CREATE; i++) {
            pesArray[i] = VM_PES_NUMBERS[(int) random.sample()];
            totalNumberOfPes += pesArray[i];
        }

        return pesArray;
    }
/**
     * Creates an array with the configuration of PEs for each VM to be created
     * in each experiment run. Every experiment will use the same VMs
     * configurations.
     *
     * @return the created VMs PEs array
     */
Creates an array with the configuration of PEs for each VM to be created
in each experiment run. Every experiment will use the same VMs
configurations.


Creates an array with the configuration of PEs for each VM to be created in each experiment run . Every experiment will use the same VMs configurations .
private int[] createVmPesArray() {
        final UniformDistr random = new UniformDistr(0, VM_PES_NUMBERS.length, getBaseSeed());
        int[] pesArray = new int[VMS_TO_CREATE];
        int totalNumberOfPes = 0;
        for (int i = 0; i < VMS_TO_CREATE; i++) {
            pesArray[i] = VM_PES_NUMBERS[(int) random.sample()];
            totalNumberOfPes += pesArray[i];
        }
        return pesArray;
    }
private int [ ] createVmPesArray ( ) { final UniformDistr random = new UniformDistr ( 0 , VM_PES_NUMBERS . length , getBaseSeed ( ) ) ; int [ ] pesArray = new int [ VMS_TO_CREATE ] ; int totalNumberOfPes = 0 ; for ( int i = 0 ; i < VMS_TO_CREATE ; i ++ ) { pesArray [ i ] = VM_PES_NUMBERS [ ( int ) random . sample ( ) ] ; totalNumberOfPes += pesArray [ i ] ; } return pesArray ; }
Creates an array with the configuration of PEs for each VM to be created
 in each experiment run.
Creates an array with the configuration of PEs for each VM to be created in each experiment run .