{"ScriptPreparationCode":"// Create a random string of length 32\r\nvar r32str = Array.from({ length: 32 }, () =\u003E String.fromCharCode(Math.floor(Math.random() * 256))).join(\u0027\u0027);\r\n\r\n// Create an array of 5000 random strings, each of length 32\r\nvar mil32str = Array.from({ length: 1_000_000 }, () =\u003E \r\n Array.from({ length: 32 }, () =\u003E String.fromCharCode(Math.floor(Math.random() * 256))).join(\u0027\u0027)\r\n);\r\n\r\n// Create a random string of length 32\r\nvar r96str = Array.from({ length: 96 }, () =\u003E String.fromCharCode(Math.floor(Math.random() * 256))).join(\u0027\u0027);\r\n\r\n// Create an array of 5000 random strings, each of length 32\r\nvar mil96str = Array.from({ length: 1_000_000 }, () =\u003E \r\n Array.from({ length: 96 }, () =\u003E String.fromCharCode(Math.floor(Math.random() * 256))).join(\u0027\u0027)\r\n);\r\n\r\n// Create a random string of length 32\r\nvar r160str = Array.from({ length: 160 }, () =\u003E String.fromCharCode(Math.floor(Math.random() * 256))).join(\u0027\u0027);\r\n\r\n// Create an array of 5000 random strings, each of length 32\r\nvar mil160str = Array.from({ length: 1_000_000 }, () =\u003E \r\n Array.from({ length: 160 }, () =\u003E String.fromCharCode(Math.floor(Math.random() * 256))).join(\u0027\u0027)\r\n);","TestCases":[{"Name":"1 or 0 out of 10 million 32 byte arrays","Code":"// Compare the random string against each string in the array\r\nconst b = mil32str.some(str =\u003E str === r32str);","IsDeferred":false},{"Name":"1 or 0 out of 10 million 96 byte arrays","Code":"// Compare the random string against each string in the array\r\nconst b = mil96str.some(str =\u003E str === r96str);","IsDeferred":false},{"Name":"1 or 0 out of 10 million 160byte arrays","Code":"// Compare the random string against each string in the array\r\nconst b = mil96str.some(str =\u003E str === r96str);","IsDeferred":false}]}