Random TSV Generator
Generate robust, client-side random Tab-Separated Values (TSV) mock data for testing, databases, and data science pipelines.
About
Generating structurally sound mock data is critical for rigorous software testing, database benchmarking, and data science pipeline validation. Relying on real-world data exposes systems to unnecessary Personally Identifiable Information (PII) risks and violates modern compliance standards (e.g., GDPR, CCPA). This application orchestrates the generation of robust, synthetic Tab-Separated Values (TSV) entirely within your local browser environment.
Unlike Comma-Separated Values (CSV), the TSV format utilizes horizontal tabs (\t) as column delimiters, drastically reducing collision risks when handling complex string data that frequently contains commas. The computational complexity of generating this dataset scales linearly as O(R × C), where R is the number of rows and C is the number of defined columns. High-volume generations are process-yielded to prevent main-thread blocking, ensuring mathematical precision without UI degradation.
Formulas
The core generation relies on deterministic transformations of uniform pseudo-random variables. For numerical ranges, the uniform float generated by the engine is mapped to the target discrete space.
Where U is a pseudo-random float U ∈ [0, 1), generated via Math.random() or a cryptographically secure equivalent when dictated by the context (such as UUID generation). To guarantee structural integrity of the TSV format, a strict sanitization pass is applied to all string outputs to strip internal tab characters:
Reference Data
| Data Type | Algorithmic Approach | Entropy Source | Typical Output Format |
|---|---|---|---|
| UUID v4 | Cryptographic PRNG | crypto.randomUUID() | 8-4-4-4-12 hex string |
| Integer Range | Uniform Distribution Mapping | Math.random() bounds | Integer N ∈ [Min, Max] |
| Floating Point | Scaled Float with fixed precision | Math.random() | Decimal, e.g., 145.29 |
| Boolean | Binary split on probability threshold | P(x) = 0.5 | TRUE or FALSE |
| Date/Time | Epoch Timestamp scaling | Scaled numeric ranges | ISO 8601 (YYYY-MM-DD) |
| Custom Choice | Array Index Selection | i = floor(U × L) | User-defined string literal |
| Names/Emails | Dictionary combination logic | Multi-array permutation | [email protected] |