List to code
A JSON array, an SQL IN list or a comma-separated line — with a sample, a slice or fixed-size chunks.
0 keeps it in one piece.
JSON and CSV quote by their own rules and ignore this.
Result
Good to know
- Groups are here because databases put a ceiling on an IN list — Oracle refuses one longer than 1000 values. Splitting into groups of 1000 turns a query that will not run into a handful that will.
- The random sample draws without repeats, and draws from the browser's cryptographic randomness rather than from Math.random. Each run of it is a fresh draw.
- SQL and CSV double their quotes, which is what those two formats expect from a value that contains one. The other styles escape with a backslash, which is what code expects. A JSON array is escaped by the JSON rules and ignores the quote setting entirely.
- Groups are separated by a blank line inside the one box rather than given a box each: one field is one selection and one Copy, and a hundred groups would otherwise be a hundred of both. Everything happens in your browser — nothing you paste is sent to the server.
29 views