Cities in the Correct the State
I want to generate random City in one column, and random State in another, but I want the City and State to correspond. In other words if I get Los Angeles as the City, The State should be California,...
View ArticleCan I lookup a value in one dataset using a field in another?
@mockaroo Did you come up with a way to get a random entry rather than the last record matching the criteria?
View ArticleCan I lookup a value in one dataset using a field in another?
@benallen002 could you post your work around ?
View ArticleCan I lookup a value in one dataset using a field in another?
Yes, thank you for reminding me! I just updated the site so that it randomly picks a value if multiple matches are found.
View ArticleCities in the Correct the State
Mockaroo automatically does this. All of the location fields (City, State, Country, Latitude, Longitude, Postal Code, etc...) are automatically correlated.
View ArticleCan I lookup a value in one dataset using a field in another?
Thank you for the fast turn-around.
View ArticleIs it possible to generate data in hourly increments using Date type and SQL...
Would it be possible to have the option to choose hourly increments in addition to full days when setting the date range for a SQL datetime field? Or could someone give me a general idea how to do it...
View ArticlePossible bug: Single date in range SQL datetime: time portion is always...
If you create a a Date type field with the same begin and end date using SQL datetime the output always contains "00:00:00" as the time portion for that field. If I use a date range of two or more...
View ArticlePossible bug: Single date in range SQL datetime: time portion is always...
Actually, I see another problem, the final date in the date range is not generated correctly. I used this schema:https://mockaroo.com/schemas/43326 I did a date range of 09/01/2016-09/22/2016 100,000...
View ArticleSingle character field for Middle Name
I'm sure there a simple way to do this by setting the field to a firstName and then using a formula to get just the first character.
View ArticleSingle character field for Middle Name
And of course within minutes of posting this i found that simply using "this[0,1]" worked hopefully this helps someone in the future
View ArticleSingle character field for Middle Name
This video tutorial explains how to do this and a bit more:How to tweak the value of a field using inline formulas in Mockaroo This video shows how to further customize your data using formulas:How to...
View ArticleField formula rouding
Hi Folks !,I've got a field formula that takes a number from a previous field and divides the number by 6160... example...field("Tonne Miles")/6160 The calculated field rounds up to a whole number and...
View ArticleRepeated locations within country
Hi all, I'm trying to generate 10k different locations within a country (Spain) but points are placed recurrently over the same 20/30 locations and not distributed in a random manner. Any other way to...
View ArticleField formula rouding
Ruby automatically casts the result to an integer when both operands are integers. To preserve the decimal places, simply make the denominator 6160.0
View ArticleRepeated locations within country
Mockaroo has a limited number of locations within each country, so it's not possible to guarantee uniqueness. You could, however, add a random number to latitude and longitude by using the following...
View ArticleIs it possible to generate data in hourly increments using Date type and SQL...
You can do this using a formula like: date('1/1/2017 14:00:00') + hours(random(0, 48)) This will generate a date and time between 0 and 48 hours after 1:00pm on 1/1/2017.
View ArticleIs it possible to specify a field to sort the generated data by?
Loving this tool, although it is not clear to me how to sort the resulting (JSON) data array, is this possible?
View Article