Add tags

Add tags to the following comment
PHPで。
$m > $n の時、全員が選ばれます
1
2
3
4
5
6
<?php
function lot($n, $m) {
   $a = range(1, $n);
   shuffle($a);
   return array_slice($a, -$m);
}

Add tags

The input will be splited to tags with space.

Index

Feed

Other

Link

Pathtraq

loading...