- Mar 23, 2019 This was a brief analysis of some of a few random data generator java libraries available to use and how we could use them to generate test data. Hope you enjoyed reading the blog post and were able to learn about generating random test data from it. Thanks a lot for reading!
- Random Date Generator. Use this random date generator to randomly select a day, month, and year from any point in time. Pick a date at random from any year or range of years you want. You can randmoly draw up to 100 dates at once.
- Free online random CSV file generator. Just press a button and get your random CSV file. There are no ads, popups or nonsense, just a random CSV data creator. Press a button, get a random CSV. Created by developers from team Browserling.
- Allows you to generate online a table with random personal information: name, age, occupation, salary, etc. You can use this data table for education (e.g. Teaching, learning MS Excel), for testing databases or for other purposes. Simply select the preferred columns (on the left), the number of rows and then press 'generate' button.
A free test data generator and API mocking tool - Mockaroo lets you create custom CSV, JSON, SQL, and Excel datasets to test and demo your software. You can download random data programmatically by saving your schemas and using curl to download data in a shell script via a RESTful url. What's new in Mockaroo?
Help
List of template tags
![Random Data Generator Random Data Generator](https://www.red-gate.com/wp-content/uploads/2016/12/SQL-Data-Generator-6.png)
Returns random item from passed arguments list.
Usage
Returns
*Specifies number of repeats of array item. Repeatable array must contains only two items: first is repeat tag, second is item that must be repeated. If no arguments is specified item will be repeated from 0 to 10 times. If min argument is specified, item will be repeated that many times. If both arguments are specified, item will be repeated in specified range of times.
Usage
Arguments
Param | Type | Details |
---|---|---|
min (optional) | Number | Minimum number in the range. Default is 0. |
max (optional) | Number | Maximum number in the range. Default is 10. |
Returns
NumberIndex of current cloned object starting from 0.
Usage
Arguments
Param | Type | Details |
---|---|---|
startFrom (optional) | Number | Index will start from this value. Default is 0. |
Returns
NumberRandom integer in specified range. Can be negative.
Usage
Arguments
Param | Type | Details |
---|---|---|
min (optional) | Number | Minimum number in the range. Default is 0. |
max (optional) | Number | Maximum number in the range. Default is 10. |
format (optional) | String | Number format. For more info visit Numeral.js. |
Returns
NumberStringRandom float in specified range. If min argument is float, generated number will be float too with same number of decimals. Can be negative.
Usage
Arguments
Param | Type | Details |
---|---|---|
min (optional) | Number | Minimum number in the range. Default is 0. |
max (optional) | Number | Maximum number in the range. Default is 10. |
fixed (optional) | Number | Number of decimals. Default is 4. |
format (optional) | String | Number format. For more info visit Numeral.js. |
Returns
NumberStringRandom boolean value.
Usage
Returns
BooleanRandom date in specified range.
Usage
Arguments
Param | Type | Details |
---|---|---|
min (optional) | Date | Minimum date in the range. Default is new Date(1970, 0, 1). |
max (optional) | Date | Maximum date in the range. Default is new Date(). |
format (optional) | String | Date format. For more info visit datef. |
Returns
NumberRandom Lorem Ipsum text.
Usage
Arguments
Param | Type | Details |
---|---|---|
count (optional) | Number | Number of generated units. Default is 1. |
units (optional) | String | Units type. Can be words, sentences, or paragraphs. Default is sentences. |
Returns
StringMongoDB's globally unique identifier for objects.
Usage
Returns
StringRandom globally unique identifier.
Usage
Returns
StringYou can create your own function, that returns any value. this keyword contains current generated object so you can refer previous existing fields as shown in example.
Usage
Arguments
Param | Type | Details |
---|---|---|
tags | Object | Object with generation methods which has same names as the tags. |
index | Number | Index of current cloned object starting from 0. |
Returns
*Random person name of both genders if no gender is specified.
Usage
Arguments
Param | Type | Details |
---|---|---|
gender (optional) | String | Gender of person name. Can be male or female. |
Returns
StringPreviously generated person gender. Must be after field, that contains firstName tag.
Usage
Returns
![Excel Excel](https://i.ytimg.com/vi/tjEjgue5i3M/maxresdefault.jpg)
Random person surname.
Usage
Returns
StringRandom company name.
Usage
Returns
StringGenerates email based on firstName, surname and company that are called before of it.
Usage
Arguments
Param | Type | Details |
---|---|---|
random (optional) | Boolean | If true, random email address will be generated. Default is false. |
Returns
StringGenerates random phone number.
Usage
Arguments
Param | Type | Details |
---|---|---|
format (optional) | String | Format string which contains x letters. Default is '(xxx) xxx-xxxx'. |
Returns
StringRandom country name.
Usage
Arguments
Param | Type | Details |
---|---|---|
abbreviation (optional) | Boolean | If passed returns country name abbreviation instead of full name. |
Returns
StringReturns a list of 205 unique countries instead of passed string.
Usage
Returns
ArrayRandom US state name.
Usage
Random Data Generator Sql
Arguments
Param | Type | Details |
---|---|---|
abbreviation (optional) | Boolean | If passed returns state name abbreviation instead of full name. |
Returns
StringRandom US city name.
Usage
Returns
StringRandom US street name.
Usage
Returns
StringUsage
JSON Generator has a convenient syntax. You can specify JavaScript object for template that you see in the left box. It will be cloned in infinite depth. Fields may have any name and value, but it must be valid JavaScript. Values, which are strings, may contain one or more template tags. When you click 'Generate' the data source object to be copied several times and the place of tags will be inserted random values.
You can copy the generated JSON to clipboard by clicking 'Copy to clipboard'. If you click 'Upload', JSON will be stored on the server and you can download generated file by clicking 'Download' button or access it via ajax-request by URL that will be copied to clipboard after clicking 'Copy URL' button. Yes, JSON Generator can JSONP :) Supported HTTP methods are: GET, POST, PUT, OPTIONS.
Size of uploaded generated files does not exceed 500 kB. Snippetslab 1 5 1 download free. Size appears at the top right of the field with the generated data. If file size text is red - file is too large for saving on server, but you can copy it to your clipboard and save locally to *.json file.
You can choose indentation for the generated JSON from the drop-down list. Also when you copy the link to uploaded code there is an 'indent' param in URL. It can has values of 2, 3 and 4. If param is not specified code will be compact. Example: http://www.json-generator.com/j/JSON_ID?indent=4
Also you can choose status code for response by passing 'status' param in URL. Example: http://www.json-generator.com/j/JSON_ID?status=401
Random Data Generator Javascript
JSON Generator remembers your last template in localStorage. If you want to reset it, click 'Reset' button to reset template and UI.
About
We've all faced the problem of lack of information in our app. All interfaces seem lifeless and empty. Debugging with no data is also not simple.
I think that each of us has at least once in their lives created a bunch of files with JSON data, but they were just one object propagated without unique fields. JSON Generator was created in order to help with this. It provides an opportunity generate any data and in any quantity. Edit template, click 'Generate' and you're done.
Random Data Generator Api
If you have found a bug, you have a suggestion for improving the application or just want to thank me, click on 'Feedback'.