Skip to content

Added ability to seed random number sequences#2801

Merged
Dunbaratu merged 1 commit intoKSP-KOS:developfrom
Dunbaratu:fixes_2768_random_seed
Nov 7, 2020
Merged

Added ability to seed random number sequences#2801
Dunbaratu merged 1 commit intoKSP-KOS:developfrom
Dunbaratu:fixes_2768_random_seed

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