Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Legoless/Saystack
Browse files Browse the repository at this point in the history
  • Loading branch information
Legoless committed Jul 22, 2016
2 parents 51fe375 + 81021b0 commit fa42b5d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Expand Up @@ -20,8 +20,27 @@ Few examples:
```

- Random number generation

```swift
// Random Integer between 0 and 1000
let rand1 = Int.random(0, upper: 1000)

// Random Float between 0.00 and 1.00
let rand2 = Float.random()
```

- Shuffling arrays

```swift
var array = [ 1, 2, 3, 4, 5 ]
array.shuffle()

print(array) // Prints [ 5, 2, 3, 1, 4 ]

let shuffled = [ 1, 2, 3, 4, 5 ].shuffled()
```


Contact
======

Expand Down

0 comments on commit fa42b5d

Please sign in to comment.