2 %> Compute a random integer between A and B
6 %> @author Michel Bierlaire
7 %> @date Sun Apr 19 13:41:06 2015
11 %> Compute a random integer between A and B
12 %> @param A lower bound
13 %> @param B upper bound
14 %> @
return r random number
16 r = 1+floor((A-1)+(B-(A-1))*rand()) ;
function randomFromAtoB(in A, in B)
Compute a random integer between A and B.
function twoOptRandomNeighbor(in cities)
Generate one random 2-opt neighbor for the TSP.