Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. for (int i=0; currentNode!=NULL;
  2.      currentNode = currentNode->next, i++){
  3.  
  4.   if (rand()%i == 0)
  5.     selection = currentNode;
  6. }