Jump to content

Card Deck


MemphiS

Recommended Posts

Curent code:

 

for ($f=0; $f<52; $f++){

shuffle($fdeck);

$countCRD = count($fdeck);

$yourcaRD = rand()%$countCRD;

if ($fdeck[$yourcaRD]==""){

$f--;

}else{

if (

$mYcrd[] = $fdeck[$yourcaRD];

$fdeck[$yourcaRD]=="";

}

}

 

Does someone know how to work out how to stop it from producing two of the same cards out?

Link to comment
https://forums.phpfreaks.com/topic/53725-card-deck/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.