 
 import Foundation
 
-open class Random {
+public enum Random {
     /**
      Generate a random unsigned integer number.
      - returns: An unsigned integer number in a [0, UInt32.max) range.
      */
-    open static func uint32() -> UInt32 {
+    public static func uint32() -> UInt32 {
         return arc4random_uniform(UInt32.max)
     }
 

     - parameter range: The range.
     - returns: An integer number in a given range.
     */
    open static func int(_ range: Range<Int>) -> Int {
        return range.lowerBound + Int(arc4random_uniform(UInt32(range.upperBound - range.lowerBound + 1)))
    }


     - parameter chance: The chance of *true*.
     - returns: *true* with a given chance (from 0% to 100%)
     */
    public static func bool(chance: Int) -> Bool {
        return arc4random_uniform(100) < UInt32(min(max(chance, 0), 100))
    }
}
