Skip to content

Commit

Permalink
Update random key generation range in getRandomArticle function
Browse files Browse the repository at this point in the history
  • Loading branch information
L422Y committed Nov 17, 2023
1 parent a29e24d commit 44f31ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playground/src/PlaygroundPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const taggedPosts = ref(await megaMap.query.byTag(selectedTag.value))
watch(selectedTag, async (newValue) => taggedPosts.value = await megaMap.query.byTag(newValue))
const getRandomArticle = async () => {
await megaMap.get(`key${Math.floor(Math.random() * 1008) + 1}`)
await megaMap.get(`key${Math.floor(Math.random() * 1000) + 1}`)
}
</script>
Expand Down

0 comments on commit 44f31ac

Please sign in to comment.