Skip to content

Commit

Permalink
Added a seeded random shuffle
Browse files Browse the repository at this point in the history
  • Loading branch information
guydav committed Nov 8, 2023
1 parent 0861db6 commit 7a2617f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/pages/Task1Page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
import { useRouter, useRoute } from 'vue-router'
import useTimelineStepper from '@/composables/timelinestepper'
import useSmileStore from '@/stores/smiledata' // get access to the global store
import * as random from '@/randomization';
import { reactive, onMounted, ref, watchEffect, watch } from 'vue';
import SingleGameExtendedJudgment from '@/components/molecules/SingleGameExtendedJudgment.vue';
const router = useRouter()
const route = useRoute()
const smilestore = useSmileStore()
Expand All @@ -21,9 +23,9 @@ const gamesData = smilestore.getGamesData;
function sampleGames() {
const { games } = gamesData;
// TODO: sample games, using a random seed, balanced by conditions
// TODO: subsample games, balanced by conditions
// TODO: # of real/model created, MAP-Elites bins, etc.?
return games;
return random.shuffle(games);
}
Expand Down

0 comments on commit 7a2617f

Please sign in to comment.