Results 1 to 8 of 8

Thread: Sorting & Randomisation Of Array

Threaded View

  1. #1

    Thread Starter
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    Sorting & Randomisation Of Array

    Hi all! This ones for anyone whos bored or bloody good with algorithms!

    Can anyone guide me on how to realistically shuffle a pack of cards?
    i.e. at the moment I have a 1 column array representing a card deck,
    with the element entries being Herts1 through to SpadeKing, what's the
    speediest / most efficient way best way to go about randomising these
    elements please - I've realised that on a normal shuffle, not all the cards
    are randomised & some stay together next to each other,
    so I'm not using the rnd functions at the moment.

    Thanks
    Last edited by alex_read; Aug 17th, 2002 at 04:11 AM.

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width