Generating random strings, numbers, or data structures, or dealing with random input (e.g., fuzz testing).
Questions tagged [random-data]
22 questions
0
votes
1 answer
Duplicate Primary Key when Generating Data with Talend
I'm creating a job in Talend where I have to generate files containing data generated with tRowGenerator along with other sources : SQL Server database and delimited files.
The issue is that I have duplicated files with the same primary key.
All i…

MarTech
- 115
- 3
- 12
0
votes
2 answers
Creating random string to represent RGB color
Suppose I need to generate random string to represent an RGB color. The string consists of # and 6 hex digits: e.g. #ff0000 or#cafe00.
I am doing it with random data generator like that:
import…

Michael
- 41,026
- 70
- 193
- 341
0
votes
1 answer
Saving random rows from a sqlite database to another temporary sqlite database
I choose 20 random rows from my sqlite database like this:
String selectQuery = "SELECT * FROM " + TABLE_QUESTION + " WHERE " + KEY_ID+ " IN (SELECT "+ KEY_ID + " FROM " +TABLE_QUESTION+" ORDER BY RANDOM() LIMIT 20)";
I display them in Activity A.…

Hasan Saykın
- 138
- 1
- 8
0
votes
1 answer
Unable to get some random data form SQLite
I am making an app in which I am using sqlite Database for generating random values, but it is not giving the value. It always shows a blank Activity even not showing the added record. Here is my code. I want to display some random data in a…

Gaurav Awasthi
- 5
- 4
-1
votes
1 answer
Generating 3.000.000 strings of length 11 in R
Apparently if I try this:
# first grab the package
install.packages("stringi")
library(stringi)
# and then try to generate some serious dummy data
my_try <- as.vector(sample(1111111111:99999999999,3000000,replace=T))
R will say NOPE, sorry:
Error:…

nick88
- 118
- 1
- 8
-1
votes
2 answers
Sort column ascending but I want 0 to come last and RANDOMLY using mysql
I need to get data from MySQL table in ascending order but zero values come last and randomly
Right now this is my order by condition.This is not working
ORDER BY sortorder=0 RAND(),sortorder

Aishu
- 47
- 9
-4
votes
1 answer
Does Python have a library that produces data as fast os.urandom but is reproducible?
Is there a Python library that can produce random data as fast as os.urandom, but the data can be reproduced if given a seed?

Laharl
- 129
- 2
- 6