Skip to content

Repository files navigation

Pure.Primitives.Random

Random value generators for Pure primitive types.

.NET build & testBuild and DeployNuGetLicense: MIT

Overview

Pure.Primitives.Random provides types that generate random values conforming to the Pure.Primitives.Abstractions interfaces. These generators are intended for use in tests, property-based testing, and fuzz testing scenarios where you need arbitrarily-valued but interface-conforming primitives.

Types

Single values

TypeImplementsGenerates
RandomCharICharA random Unicode character
RandomDateIDateA random date
RandomTimeITimeA random time
RandomDateTimeIDateTimeA random date-time
RandomInt / RandomLong / RandomDouble / etc.INumber<T>Random numeric values

Collections

TypeGenerates
RandomCharCollectionRandom sequence of IChar values
RandomDateCollectionRandom sequence of IDate values
RandomTimeCollectionRandom sequence of ITime values
RandomDateTimeCollectionRandom sequence of IDateTime values

Design Principles

  • Interface-conforming — all types implement Pure.Primitives.Abstractions interfaces.
  • AOT-compatible — no reflection; fully compatible with Native AOT.

Dependencies

About

Random value generators for Pure primitive types — RandomChar, RandomDate, RandomTime, RandomDateTime, RandomNumber, and collection variants.

Resources

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages

Generated from kudima03/Pure.Template