[ create a new paste ] login | about

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

PHP, pasted on Dec 16:
1
2
3
4
5
6
7
8
9
10
<?php
function get_cards()
{
    $deck = range(1,52);
    shuffle($deck);
    return array_slice($deck, 0, 5);
}

$cards = get_cards();
var_dump(memory_get_peak_usage());


Output:
1
int(50896)


Create a new paste based on this one


Comments: