@1024pix/randomix
v1.1.7
Published
Random data generator for Pix challenges
Downloads
24
Keywords
Readme
Randomix
Configuration
import * as generators from '@1024pix/randomix/generators';
import * as data from '@1024pix/randomix/data';
import { Randomix } from '@1024pix/randomix';
export const randomix = new Randomix({
generators,
data,
});
Usage
import { randomix } from './randomix';
const generator = randomix.getGenerator({ locale: 'fr', seed: 42 });
const integer = generator.integer(10);
const person = generator.person();