Home
last modified time | relevance | path

Searched refs:n_left (Results 1 – 2 of 2) sorted by relevance

/PHP-5.3/ext/standard/
H A Darray.c1767 int j, n_elems, rnd_idx, n_left; in php_array_data_shuffle() local
1777 n_left = n_elems; in php_array_data_shuffle()
1781 while (--n_left) { in php_array_data_shuffle()
1783 RAND_RANGE(rnd_idx, 0, n_left, PHP_RAND_MAX); in php_array_data_shuffle()
1784 if (rnd_idx != n_left) { in php_array_data_shuffle()
1785 temp = elems[n_left]; in php_array_data_shuffle()
1786 elems[n_left] = elems[rnd_idx]; in php_array_data_shuffle()
H A Dstring.c5025 long n_elems, rnd_idx, n_left; local
5035 n_left = n_elems;
5037 while (--n_left) {
5039 RAND_RANGE(rnd_idx, 0, n_left, PHP_RAND_MAX);
5040 if (rnd_idx != n_left) {
5041 temp = str[n_left];
5042 str[n_left] = str[rnd_idx];

Completed in 61 milliseconds