Jump to content

Deal cards for FreeCell: Difference between revisions

Line 3,137:
 
=={{header|Swift}}==
Swift 4.2. Largely based on the Objective-C example.
<lang Swift>struct MicrosoftLinearCongruentialGenerator {
var seed : Int
Line 3,188 ⟶ 3,189:
var cards = [Card]()
init(seed:Int) {
for i in (0..<52).reversed() {
self.cards.append(Card(sequence:51-i))
}
var r = MicrosoftLinearCongruentialGenerator(seed: seed)
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.