From a29e24d5519f6ad4afde03b0abc431f034ee7fa6 Mon Sep 17 00:00:00 2001 From: "Larry W." Date: Fri, 17 Nov 2023 12:00:51 -0500 Subject: [PATCH] Update random key generation range in setInterval function --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a212faa..073bc3a 100644 --- a/README.md +++ b/README.md @@ -140,7 +140,7 @@ const myPosts = MegaMap({ // simulate a record load every second setInterval(async () => { - await megaMap.get(`key${Math.floor(Math.random() * 1008) + 1}`) + await megaMap.get(`key${Math.floor(Math.random() * 1000) + 1}`) }, 1000) ```