number
BusinessGeneric numeric value generator — alias for decimal. Use when your schema simply calls the field 'number'.
Example Outputs
42.51007.25Parameters
| Parameter | Description |
|---|---|
| min | Minimum value |
| max | Maximum value |
| precision | Decimal places |
API Usage
Send a POST request to generate number data:
curl -X POST https://mockhero.dev/api/v1/generate \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tables": [
{
"name": "example",
"count": 5,
"fields": [
{
"name": "number",
"type": "number",
"params": {
"min": 1,
"max": 100
}
}
]
}
]
}'Common Use Cases
- Generic numeric fields
- Counter values
- Score fields
Quick Info
- Field Type
- number
- Category
- Business
- Parameters
- 3 parameters
- Output Format
- JSON, CSV, SQL
Generate Number + 155 more types via API
One API call. Multiple tables. Relational integrity. Free tier included.