Home
last modified time | relevance | path

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

/PHP-5.4/ext/standard/
H A Darray.c1777 int j, n_elems, rnd_idx, n_left; in php_array_data_shuffle() local
1787 n_left = n_elems; in php_array_data_shuffle()
1791 while (--n_left) { in php_array_data_shuffle()
1793 RAND_RANGE(rnd_idx, 0, n_left, PHP_RAND_MAX); in php_array_data_shuffle()
1794 if (rnd_idx != n_left) { in php_array_data_shuffle()
1795 temp = elems[n_left]; in php_array_data_shuffle()
1796 elems[n_left] = elems[rnd_idx]; in php_array_data_shuffle()
H A Dstring.c5406 long n_elems, rnd_idx, n_left; local
5416 n_left = n_elems;
5418 while (--n_left) {
5420 RAND_RANGE(rnd_idx, 0, n_left, PHP_RAND_MAX);
5421 if (rnd_idx != n_left) {
5422 temp = str[n_left];
5423 str[n_left] = str[rnd_idx];

Completed in 32 milliseconds