RandomKit v4.4.0 Release Notes

Release Date: 2017-03-30 // over 5 years ago
  • ๐Ÿ†• New Features

    • โž• Added initializers to ReseedingRandomGenerator that take 1 or 0 arguments
      • If Reseeder conforms to SeedableFromOtherRandomGenerator, the reseeder is created from Reseeder.seeded
      • For Swift >= 3.1, if Reseeder is DeviceRandom or ARC4Random, the reseeder is just Reseeder.default
    • โž• Added floating-point value generation methods for open, half open, and closed intervals
    • โž• Added thread-local random generators :tada:

    ๐Ÿ‘Œ Improvements

    • Made Double and Float random(using:) about 27 times faster
    • ๐Ÿ’ป Made CGFloat.random(using:) faster , in turn making (NS|UI)Color.random(using:) faster

    ๐Ÿ›  Fixes

    • Made randomClosed methods be truly on the [0, 1] interval