Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ability to seed random number sequences #2801

Merged
merged 1 commit into from
Nov 7, 2020

Conversation

Dunbaratu
Copy link
Member

@Dunbaratu Dunbaratu commented Nov 7, 2020

Fixes #2768

Synopsis:

RANDOMSEED("my sequence", 12345).
print RANDOM("my sequence").
print RANDOM("my sequence").
print RANDOM("my sequence").

RANDOMSEED("my sequence", 12345).
print "Numbers should repeat again now because I reset the seed:".

print RANDOM("my sequence").
print RANDOM("my sequence").
print RANDOM("my sequence").

@Dunbaratu Dunbaratu added the enhancement Something new (not a bug fix) is being requested label Nov 7, 2020
@Dunbaratu Dunbaratu merged commit df94aa1 into KSP-KOS:develop Nov 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Something new (not a bug fix) is being requested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for reproducible pseudo random number sequences
1 participant