I've got array od values, and I want to take random from it. This is my code:
var bonus1='Opony zimowe';
var bonus2='Alarm';
var bonus3 = 'Bagażnik';
var bonus4 = 'Relingi';
var bonus5 = 'Box na narty';
var bonusy = [bonus1, bonus2, bonus3, bonus4, bonus5];
var pickBonus= bonusy[Math.floor(Math.random() * bonusy.length)];
But it doesn't show random value (Its always console.log - 'Alarm'):
What is wrong?

pickBonusvalue over and over again... you need to run through theMath.random()part, to receive a new value.