So I've made some variables and made them equal to Math.floor(Math.random()) but I honestly don't know if I can make a variable equal to a block of code and it equal the output but I've made that and don't know how to make the player spawn at those coordinates.
xCoordinates === Math.floor(Math.random());
yCoordinates === Math.floor(Math.random());
Any help would be welcome.
Thanks!