Help for this page

Select Code to Download


  1. or download this
    # I'm assuming that sth returns a long list of nodes ordered
    # from lowest rep to highest and then newest to oldest.
    ...
        $selected[rand(@selected)] = $row;
      }
    }
    
  2. or download this
    # I'm assuming that sth returns a long list of nodes ordered
    # from highest rep to lowest and then oldest to newest.
    ...
    for (0..($#filler)) {
      $selected[$_] ||= $filler[$_];
    }