fork(5) download
  1. <?php
  2. //от 1 до 100000000 случайные числа, выедем 50;
  3. $length=50;
  4. $start=1;
  5. $end=100000000;
  6. $array=array();
  7. while (count($array)<$length) {
  8. $array[mt_rand($start,$end)]="";
  9. }
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
Array
(
    [0] => 83531910
    [1] => 59315347
    [2] => 81191910
    [3] => 85188646
    [4] => 43603777
    [5] => 30151398
    [6] => 69929092
    [7] => 48032316
    [8] => 52866784
    [9] => 18411442
    [10] => 7260244
    [11] => 55588400
    [12] => 31681018
    [13] => 69045907
    [14] => 59101978
    [15] => 19501449
    [16] => 11721544
    [17] => 69406695
    [18] => 2922070
    [19] => 33092426
    [20] => 28107084
    [21] => 80336296
    [22] => 84051740
    [23] => 80748426
    [24] => 10976541
    [25] => 87015670
    [26] => 65770620
    [27] => 25082869
    [28] => 76091840
    [29] => 90302179
    [30] => 797837
    [31] => 61017444
    [32] => 2469583
    [33] => 22212228
    [34] => 13926906
    [35] => 71326359
    [36] => 20251385
    [37] => 30735175
    [38] => 32341765
    [39] => 133346
    [40] => 22814334
    [41] => 1603526
    [42] => 80407233
    [43] => 16489030
    [44] => 91160550
    [45] => 66517201
    [46] => 83442773
    [47] => 44597329
    [48] => 90061328
    [49] => 71097871
)