How to create button that leads a random 40% of people to one page and 60% to another?

I tweaked it a bit and now this works well

import wixLocation from 'wix-location';
let random = 0

$w.onReady(function () {
});

export function button2_click(event) {
    random = Math.floor((Math.random() * 1000000) + 1);
 if (random <= 10806)   {
        wixLocation.to("https://www.google.com");
    } else {
        wixLocation.to("https://ww.yahoo.com");
    }
}

Is there anyway the choice that is decided by the random number to become set in stone for that browser? or at least that browsing session? For example If random <=10 and the user clicks the button and is sent to google.com. If they come back to my site and click the button again it will always send them to google.com and not allow them to get another choice?