This question has already been answered:
for (let i = 0; i < 6; i++) { // i=0; i<6 this.blocks.push({ colorIndex: Math.floor(Math.random() * 16 + 1), id: Math.random().toString(16).slice(2), }) } here is a cycle, colorIndex should load random numbers, but it happens that loads the same. each number is a specific color) I do not want the same sinkers. Tell me how to change the code that would not load the same. cubes only 6 pieces