Random commentary about Machine Learning, BigData, Spark, Deep Learning, C++, STL, Boost, Perl, Python, Algorithms, Problem Solving and Web Search
for(int i = 0; i < A.length - 1; i++) { int j = rand(i+1, A.length); swap(A, i, j);}
for(int i = 0; i < A.length - 1; i++) {
ReplyDeleteint j = rand(i+1, A.length);
swap(A, i, j);
}