Skip to content

Commit 8e5d08d

Browse files
authored
Merge pull request #2898 from VioletPumpkin/dev
random settings multiselect fix
2 parents 8fbfab2 + aa78ce5 commit 8e5d08d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

static/js/randomize_settings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function random_multi_select_setting(weights_obj) {
105105
/** Generate a random list of values for a multi-select setting. */
106106
const settingList = [];
107107
for (const [option, weight] of Object.entries(weights_obj)) {
108-
let randValue = Math.random();
108+
let randValue = Math.random() * 100.0;
109109
if (randValue <= weight) {
110110
settingList.push(option);
111111
}

0 commit comments

Comments
 (0)