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