{
Collection<List<Label>> sequences =new LinkedHashSet<List<Label>>();
RandomPathGenerator rpg = new RandomPathGenerator(from, new Random(0),4, from.getInit());// the seed for Random should be the same for each file
long startTime = System.nanoTime();
rpg.generatePosNeg((graphComplexity+1)*states , 1);
outcome.setValue(LONG_V.DURATION_RAND,System.nanoTime()-startTime);
sequences.addAll(rpg.getAllSequences(0).getData(PTASequenceEngine.truePred));
sequences.addAll(rpg.getExtraSequences(0).getData(PTASequenceEngine.truePred));
Pair<Double,Long> randSeq = compareLang(from, to, sequences);
outcome.setValue(LONG_V.DURATION_RAND, outcome.getValue(LONG_V.DURATION_RAND)+randSeq.secondElem);