[ create a new paste ] login | about

Link: http://codepad.org/ckuUQCP3    [ raw code | output | fork ]

PHP, pasted on Aug 5:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php

    $nums = array();
    
    while(count($nums)<=6){
        $rand = rand(0,9);
        if(!in_array($rand, $nums)){
             $nums[] = $rand;
        }
    }
    
    echo implode('',$nums);

?>


Output:
1
9814563


Create a new paste based on this one


Comments: