private int lottery() {
		int size = pcbList.getPCBList().size();
		ProcessControlBlock pcb;
		
		// Pick random until PCB that is not blocked is found
		do {
			pcb = pcbList.getPCBList().get((int) (Math.random() * size));
		} while (pcb.getState() != ProcessState.BLOCKED);
		
		return pcb.getPid();
	}