Forum Navigation
You need to log in to create posts and topics.

Re: GameplayKit Card Shuffler

Posted by: bernfbe <bernfbe@...>


Ken wrote:

This demo uses CocoaUI GameplayKit's:


   fn GKRandomSourceArrayByShufflingObjectsInArray

function to simulate shuffling a deck of cards and drawing five random cards. The code can easily be adapted to dealing any kind of card hands.



Ken,

Nice Demo. Thanks for sending the full res version backchannel.

I know nothing about randomising and wonder what's the difference between GKRandomSourceArrayByShufflingObjectsInArray and ArrayShuffledArray?

Would also be interested to know when we'd use GKRandomSourceShared, GKRandomSourceInit, GKARC4RandomSourceInit, etc.

Bernie


--
To unsubscribe, send ANY message to: futurebasic-unsubscribe@freegroups.net To access the list archives, go to: http://freegroups.net/groups/futurebasic/