Skip to content

Commit 9e3b86a

Browse files
committed
Update seed
1 parent 0d045f2 commit 9e3b86a

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

inst/qml/common/bayesian/AdvancedOptions.qml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -855,9 +855,9 @@ Section
855855
{
856856
name: "seed"
857857
text: qsTr("Seed")
858-
defaultValue: 1
859-
min: 1
860-
max: 99999999
858+
defaultValue: Math.floor(Math.random() * 1000000) // Init with random integer in [1,...,999999]
859+
min: -999999
860+
max: 999999
861861
info: qsTr("Specify the random seed for reproducibility.")
862862
}
863863

inst/qml/common/classical/AdvancedOptions.qml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ Section
4242

4343
IntegerField
4444
{
45-
name: "seed"
46-
text: qsTr("Seed")
47-
defaultValue: 1
48-
min: 1
49-
max: 99999999
50-
info: qsTr("Specify the random seed for reproducibility.")
45+
name: "seed"
46+
text: qsTr("Seed")
47+
defaultValue: Math.floor(Math.random() * 1000000) // Init with random integer in [1,...,999999]
48+
min: -999999
49+
max: 999999
50+
info: qsTr("Specify the random seed for reproducibility.")
5151
}
5252

5353
IntegerField

0 commit comments

Comments
 (0)