function createBgNumbers() {
	const size = 50;
	const row = Math.ceil(window.innerWidth / size);
	const col = Math.ceil(window.innerHeight / size);
	
	for(let i=0; i<row; i++){
		for(let j=0; j<col; j++){
			const num = document.createElement('div');
			num.classList.add('num');
			num.style.left = `${i * size}px`;
			num.style.top = `${j * size}px`;
			num.innerHTML =`<span>${getRandomNum()}</span>`;
			num.style.color = Math.random() < 0.4 ? '#fff' : '#2f3542';
			document.body.appendChild(num);
		}
	}
}
// create a random grid of 0,1, or space for background
create a random grid of 0,1, or space for background
create a random grid of 0 1 or space for background
function createBgNumbers() {
	const size = 50;
	const row = Math.ceil(window.innerWidth / size);
	const col = Math.ceil(window.innerHeight / size);
	for(let i=0; i<row; i++){
		for(let j=0; j<col; j++){
			const num = document.createElement('div');
			num.classList.add('num');
			num.style.left = `${i * size}px`;
			num.style.top = `${j * size}px`;
			num.innerHTML =`<span>${getRandomNum()}</span>`;
			num.style.color = Math.random() < 0.4 ? '#fff' : '#2f3542';
			document.body.appendChild(num);
		}
	}
}
function createBgNumbers ( ) { const size = 50 ; const row = Math . ceil ( window . innerWidth / size ) ; const col = Math . ceil ( window . innerHeight / size ) ; for ( let i = 0 ; i < row ; i ++ ) { for ( let j = 0 ; j < col ; j ++ ) { const num = document . createElement ( 'div' ) ; num . classList . add ( 'num' ) ; num . style . left = ` ${ i * size } ` ; num . style . top = ` ${ j * size } ` ; num . innerHTML = ` ${ getRandomNum ( ) } ` ; num . style . color = Math . random ( ) < 0.4 ? '#fff' : '#2f3542' ; document . body . appendChild ( num ) ; } } }
create a random grid of 0,1, or space for background
create a random grid of 0 1 or space for background