kRandom Java Documentation

kRandom is a Java random-data generation library built for test fixtures, seedable fake data, and object graph population. The latest stable release is 2.10.0, which is used by the public installation examples. Repository-local snapshots are intended for development verification.

This site is focused on the Java side only.

What you can do

  • Generate primitive, text, date/time, network, finance, file, commerce, and user/profile data.
  • Build seeded deterministic generators for repeatable tests.
  • Populate POJOs with ObjectGenerator.
  • Build record batches with schema-style APIs (Field + Schema).
  • Use ProviderHub for generic provider lookup/aliases/runtime extension.

Design direction (current)

  • Java is the source-of-truth implementation.
  • Consumer integrations build directly on core.
  • Release integrations include Jackson, Spring Boot, Kotest, and the Kotlin DSL.
  • Java remains the primary API, with Kotlin and property-testing modules focused on consumer ergonomics.