Is it possible to freeze/lock in the outcome of this Math.random()?

I’m looking to choose randomly the very first slot on my chess board matrix to start off the calculation for possible placements of chess pieces. Is there a way of freezing the outcome of Math.floor(Math.random()*board.size)?

Thank you in advance!