Package uk.co.iscoding.freecell.random

Examples of uk.co.iscoding.freecell.random.SRandom


        }
    }

    public void msShuffle(int seed) {
        ArrayList<PlayingCard> newDeck = new ArrayList<PlayingCard>(52);
        SRandom rand = new SRandom(seed);
        int j, wLeft = 52;

        for (int i = 0; i < 52; i++) {
            j = rand.nextRand() % wLeft;
            newDeck.add(deck.get(j));
            deck.set(j, deck.get(--wLeft));
        }

        deck = newDeck;
View Full Code Here

TOP

Related Classes of uk.co.iscoding.freecell.random.SRandom

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.