Advertisement
lamiastella

rand

Mar 10th, 2017
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1.             while ( count($rand_feed_limited_index) < 50) {
  2.                 $x = mt_rand(1, count($feed));
  3.                 if ( !in_array($x,$rand_feed_limited_index) ) {
  4.                 $rand_feed_limited_index[] = $x;
  5.                 }
  6.              }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement