stdlib-js / stdlib

✨ Standard library for JavaScript and Node.js. ✨
https://stdlib.io
Apache License 2.0
4.34k stars 441 forks source link

[RFC]: Create `datasets/random` utilities for generating mock data #830

Open Planeshifter opened 1 year ago

Planeshifter commented 1 year ago

Description

This RFC proposes to add a @stdlib/datasets/random namespace with packages for generating mock data.

All these utilities would likely support an options object parameter for control of what to return and sample from underlying datasets, which is why they should reside in @stdlib/datasets.

Related Issues

None.

Questions

No.

Other

No.

Checklist

AhmedKhaled590 commented 7 months ago

Hi @Planeshifter,

Based on my understanding of this RFC, I propose the following approach:

Develop a new package named @stdlib/datasets/random. This package will contain various functions or utilities to generate mock data for different types specified in the issue. Each utility will have an options parameter allowing customization. For example, for generating random emails, options might include:

kgryte commented 7 months ago

@AhmedKhaled590 Thanks for volunteering to work on this. I think this is blocked at the moment, as we need to do a bit of R&D to determine the right API. This feature request is not as straightforward, as we need to think about PRNG seeding, etc, and PRNG APIs are often quite involved. I suggest trying to find a different issue to work on for the time being.