Package uk.co.iscoding.freecell.random

Examples of uk.co.iscoding.freecell.random.SRandom.nextRand()


        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
Copyright © 2018 www.massapi.com. 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.