Skip to content

Proposal: Add functions to generate random values #390

@jhorbulyk

Description

@jhorbulyk

It would be nice if JSONata had the ability to generate random values. Consider the following two cases:

  • Generate a random number between 0 and 1 (similar to Math.random() in JavaScript.)
  • Generate a random GUID/UUID. (Harder to do without pulling in something like uuid as a dependency.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions