PHP 8.5.0 Alpha 1 available for testing

Voting

: min(eight, two)?
(Example: nine)

The Note You're Voting On

dampee at earthlink dot net
15 years ago
I've found this quite useful for simulating various kinds of shuffles with cards. It is humorous but can imitate multiple deck cuts and other (imperfectly) random events.

<?php
function truffle_shuffle($body, $chunklen = 76, $end = "\r\n")
{
$chunk = chunk_split($body, $chunklen, "-=blender=-");
$truffle = explode("-=blender=-",$chunk);
$shuffle = shuffle($truffle);
$huknc = implode($end,$shuffle);
return
$huknc;
}
?>

<< Back to user notes page

To Top