import { getRandomItem } from 'utils'; // Import a function to get a random item from an array
const B1U01 = ["wgjxxi", "xsydgmkf", "xfrqo", "ebtrxi", "ebuxdxnm"];
const B1U02 = [ "hoshw", "lfvyprp", "ohffv", "pfvqo", "soiq"];
function getRandomLink(Unit) {
// get a random number between 0 and the number of links
let randIdx = Math.floor(Math.random() * Unit.length);
// construct the link to be opened
return './Crossword/NGSL_' + Unit[randIdx] + '.html';
return 'https://mywordle.strivemath.com/?word=' + Unit[randIdx] + '&noBar=y&title=In%20Focus%20Wordle';
}