javascript - generate a new random number
<p>I have a variable that has a number between 1-3.</p>

<p>I need to randomly generate a new number between 1-3 but it must not be the same as the last one.</p>

<p>It happens in a loop hundreds of times.</p>

<p>What is the most efficient way of doing this?</p>
