SwiftRandom icon indicating copy to clipboard operation
SwiftRandom copied to clipboard

fix Int32 random method generation with passed range into it

Open azakordonets opened this issue 6 years ago • 2 comments

Upper bond cannot be less the lower bond. Added unit tests as well.

azakordonets avatar Jan 05 '18 21:01 azakordonets

I think this is a Swift 3 change. Could you add the necessary checks and tests as well?

https://github.com/azakordonets/SwiftRandom/blob/026db916dc668c5bd9ca978b1252d322820389f3/SwiftRandom/Randoms.swift#L21-L27

Thanks

thellimist avatar Jan 07 '18 22:01 thellimist

Done

azakordonets avatar Jan 08 '18 06:01 azakordonets