Data Tools
Data Sampling
Generate random or stratified samples from datasets with reproducible results
Input data (JSON array)
Simple random
Percentage
Sample result
Output will appear here...Example input
[
{ "id": 1, "category": "Electronics", "product": "Laptop", "price": 1200 },
{ "id": 2, "category": "Electronics", "product": "Phone", "price": 800 },
{ "id": 3, "category": "Books", "product": "Guide", "price": 50 }
]- Simple random sample: 50% of records
- Stratified sample by category: proportional draw per group
- Fixed size with seed for reproducibility