Skip to content

Proposed Enhancement: Extend the Rand function to allow seed, min and max#17

Open
bwakabats wants to merge 1 commit into
matheval:mainfrom
bwakabats:bwakabats-rand-extension
Open

Proposed Enhancement: Extend the Rand function to allow seed, min and max#17
bwakabats wants to merge 1 commit into
matheval:mainfrom
bwakabats:bwakabats-rand-extension

Conversation

@bwakabats

Copy link
Copy Markdown

These are passed as optional parameters. So the Rand function has 4 versions:

  • RAND()
  • RAND(object seed)
  • RAND(int min, int max)
  • RAND(object seed, int min, int max)

I have also added Unit tests

@bwakabats bwakabats changed the title Extend the Rand function to allow seed, min and max Proposed Enhancement: Extend the Rand function to allow seed, min and max Aug 10, 2023
@bwakabats

bwakabats commented Aug 14, 2023

Copy link
Copy Markdown
Author

This could now be implemented using the external function feature in #19

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.

1 participant