[swift] Generating random numbers with Swift