Skip to content

Add functions for random data generation - #5203

Draft
chris-jamieson wants to merge 1 commit into
Orange-OpenSource:masterfrom
chris-jamieson:add-random-data-functions
Draft

Add functions for random data generation#5203
chris-jamieson wants to merge 1 commit into
Orange-OpenSource:masterfrom
chris-jamieson:add-random-data-functions

Conversation

@chris-jamieson

Copy link
Copy Markdown

Following discussion at #3720

Add randomBool, randomEmail, randomFirstName, randomFullName, randomInt, randomLastName, randomString and randomWord template functions, using the fake crate for the lexical generators and rand for integers and strings.

Function parameters are separated by whitespaces rather than enclosed in parentheses, following the style described in docs/spec/runner/expressions.md. Parameters are literals, so randomInt bounds are checked at parse time.

Add randomBool, randomEmail, randomFirstName, randomFullName, randomInt,
randomLastName, randomString and randomWord template functions, using the
fake crate for the lexical generators and rand for integers and strings.

Function parameters are separated by whitespaces rather than enclosed in
parentheses, following the style described in docs/spec/runner/expressions.md.
Parameters are literals, so randomInt bounds are checked at parse time.

Co-Authored-By: Claude <noreply@anthropic.com>
@fabricereix

Copy link
Copy Markdown
Collaborator

Hi @chris-jamieson
we are all on holidays right now, we will discuss it when we are back.
We may try to support one of the random functions for the next release, but unlikely all of them.

@chris-jamieson

Copy link
Copy Markdown
Author

Hi @fabricereix thank you for your reply. No problem. I suspect that the most useful functions are likely to be

  • random-int-function
  • random-string-function

Happy to discuss and look forward to doing so. Enjoy your holiday

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants