integer
LogicGenerate random integers within a configurable min/max range. The basic numeric building block for quantity fields, counts, and IDs.
Example Outputs
4211009999Parameters
| Parameter | Description |
|---|---|
| min | Minimum value |
| max | Maximum value |
API Usage
Send a POST request to generate integer 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": "integer",
"type": "integer",
"params": {
"min": 1,
"max": 100
}
}
]
}
]
}'Common Use Cases
- Quantity fields
- Count values
- Score data
- Numeric IDs
Quick Info
- Field Type
- integer
- Category
- Logic
- Parameters
- 2 parameters
- Output Format
- JSON, CSV, SQL
Related Types
Generate Integer + 155 more types via API
One API call. Multiple tables. Relational integrity. Free tier included.