I'm making a TSP (Travelling Salesman Problem) project in Simulated Annealing Method.
Here, I need to add a condition to the generated random value.
I wanna ask you, how to generate two random value in which the first random value must bigger than the second one. random1>random2
here the code I have :
thanks....
Here, I need to add a condition to the generated random value.
I wanna ask you, how to generate two random value in which the first random value must bigger than the second one. random1>random2
here the code I have :
Code:
for (int i=1;i<=2;i++)
printf("%d\n", rand());
Comment