JSFiddle - React, Tailwind, and code Playground

JavaScript

var array_one = [10, 20, 30];
var one = array_one[Math.floor(Math.random() * array_one.length)];

if (one = 10) { two = 11 } else if (one = 20) { two = 22 } else if (one = 30) { two = 33 };

console.log(one);
console.log(two);