Closed
Description
Node.js Version
v20.12.0
NPM Version
10.5.0
Operating System
Windows 11
Subsystem
Other
Description
The code is this:
peso=true
activar=(input)=>{
if(peso==false){
return !input
}
if(peso==true){
return input
}
}
aleatorizar=()=>{
peso=Math.random()*2<1?false:true
}
entrenar=(input,output,charge)=>{
for(i=0;i<charge;i++){
if(activar(input)!==output){
aleatorizar()
}
}
}
while(true){
entrenar(false,true,10)
entrenar(true,true,10)
console.log(
"false => "+activar(false)+
" true => "+activar(true)
)
}
Minimal Reproduction
No response
Output
No response
Before You Submit
- I have looked for issues that already exist before submitting this
- My issue follows the guidelines in the README file, and follows the 'How to ask a good question' guide at https://stackoverflow.com/help/how-to-ask