function generating(param1, param2, param3, param4){
	const _D = dateGetter(param1, param2, param3, param4)
	const _Year = _D[0]
	const _Month = _D[1]
	const _day = _D[2]
	const _seconds = _D[3]
	console.log(_Year + _Month + _day)

	const currentPool = createPool(_Year, _Month)
	const arrEmpty = []
	const lowerLetterPool = ShuffleArray(PoolArr[currentPool[0]][0], arrEmpty, _seconds)
	console.log('lowerLetterPool output is:  ' + lowerLetterPool)
	const upperLetterPool = ShuffleArray(PoolArr[currentPool[1]][1], arrEmpty, _seconds )
	console.log('upperLetterPool output is:  ' + upperLetterPool)
	const numPool = ShuffleArray(PoolArr[currentPool[2]][2], arrEmpty, _seconds + _Month)
	console.log('numPool output is:  ' + numPool)
	//console.log("POOL ARRAY: " + ShuffleArray(PoolArr[currentPool[2]][3], arrEmpty, _seconds )) ERROR CHECK
	const specialPool = ShuffleArray(PoolArr[currentPool[2]][3], arrEmpty, _seconds + _Year - _day)
	console.log('specialrPool output is:  ' + specialPool)
	let _password = ""

	let i = 0
	const _param1 = _seconds % param4
	const _param2 = (_param1 + 1) % param4
	const _param3 = (_param1 + 5) % param4
	while (i < param4){
		if (param1 >= 1 && i == _param1){
			_password = _password + upperLetterPool[i % upperLetterPool.length].toString()
		} else if (param2 >= 1 && i == _param2){
			_password = _password + numPool[i % numPool.length].toString()
		} else  if (param3 >= 1 && i == _param3){
			_password = _password + specialPool[i % specialPool.length].toString()
		} else {
			_password = _password + lowerLetterPool[i % lowerLetterPool.length].toString()
		}
		i = i + 1
	}
	console.log(_password)
	return _password
}
// The function for generating the password when it is first made

The function for generating the password when it is first made
The function for generating the password when it is first made
function generating(param1, param2, param3, param4){
	const _D = dateGetter(param1, param2, param3, param4)
	const _Year = _D[0]
	const _Month = _D[1]
	const _day = _D[2]
	const _seconds = _D[3]
	console.log(_Year + _Month + _day)
	const currentPool = createPool(_Year, _Month)
	const arrEmpty = []
	const lowerLetterPool = ShuffleArray(PoolArr[currentPool[0]][0], arrEmpty, _seconds)
	console.log('lowerLetterPool output is:  ' + lowerLetterPool)
	const upperLetterPool = ShuffleArray(PoolArr[currentPool[1]][1], arrEmpty, _seconds )
	console.log('upperLetterPool output is:  ' + upperLetterPool)
	const numPool = ShuffleArray(PoolArr[currentPool[2]][2], arrEmpty, _seconds + _Month)
	console.log('numPool output is:  ' + numPool)
	const specialPool = ShuffleArray(PoolArr[currentPool[2]][3], arrEmpty, _seconds + _Year - _day)
	console.log('specialrPool output is:  ' + specialPool)
	let _password = ""
	let i = 0
	const _param1 = _seconds % param4
	const _param2 = (_param1 + 1) % param4
	const _param3 = (_param1 + 5) % param4
	while (i < param4){
		if (param1 >= 1 && i == _param1){
			_password = _password + upperLetterPool[i % upperLetterPool.length].toString()
		} else if (param2 >= 1 && i == _param2){
			_password = _password + numPool[i % numPool.length].toString()
		} else  if (param3 >= 1 && i == _param3){
			_password = _password + specialPool[i % specialPool.length].toString()
		} else {
			_password = _password + lowerLetterPool[i % lowerLetterPool.length].toString()
		}
		i = i + 1
	}
	console.log(_password)
	return _password
}
function generating ( param1 , param2 , param3 , param4 ) { const _D = dateGetter ( param1 , param2 , param3 , param4 ) const _Year = _D [ 0 ] const _Month = _D [ 1 ] const _day = _D [ 2 ] const _seconds = _D [ 3 ] console . log ( _Year + _Month + _day ) const currentPool = createPool ( _Year , _Month ) const arrEmpty = [ ] const lowerLetterPool = ShuffleArray ( PoolArr [ currentPool [ 0 ] ] [ 0 ] , arrEmpty , _seconds ) console . log ( 'lowerLetterPool output is:  ' + lowerLetterPool ) const upperLetterPool = ShuffleArray ( PoolArr [ currentPool [ 1 ] ] [ 1 ] , arrEmpty , _seconds ) console . log ( 'upperLetterPool output is:  ' + upperLetterPool ) const numPool = ShuffleArray ( PoolArr [ currentPool [ 2 ] ] [ 2 ] , arrEmpty , _seconds + _Month ) console . log ( 'numPool output is:  ' + numPool ) const specialPool = ShuffleArray ( PoolArr [ currentPool [ 2 ] ] [ 3 ] , arrEmpty , _seconds + _Year - _day ) console . log ( 'specialrPool output is:  ' + specialPool ) let _password = "" let i = 0 const _param1 = _seconds % param4 const _param2 = ( _param1 + 1 ) % param4 const _param3 = ( _param1 + 5 ) % param4 while ( i < param4 ) { if ( param1 >= 1 && i == _param1 ) { _password = _password + upperLetterPool [ i % upperLetterPool . length ] . toString ( ) } else if ( param2 >= 1 && i == _param2 ) { _password = _password + numPool [ i % numPool . length ] . toString ( ) } else if ( param3 >= 1 && i == _param3 ) { _password = _password + specialPool [ i % specialPool . length ] . toString ( ) } else { _password = _password + lowerLetterPool [ i % lowerLetterPool . length ] . toString ( ) } i = i + 1 } console . log ( _password ) return _password }
The function for generating the password when it is first made
The function for generating the password when it is first made
//console.log("POOL ARRAY: " + ShuffleArray(PoolArr[currentPool[2]][3], arrEmpty, _seconds )) ERROR CHECK
