Abstract: A gaseous fuel generator comprises a controller is for supplying and adjusting power. A gas generating assembly is driven by the power supplied by the controller to electrolyze water into mixed gas of hydrogen and oxygen. A tube has an end communicating with the gas generating assembly for transporting the gaseous fuel. An adjusting valve is disposed on the tube for controlling the flow of the mixed gas in the tube. A pressure sensor is disposed on the tube for detecting the pressure of the mixed gas in the tube and sending signals of detecting to the controller to make the gas generating assembly adjusting the rate of electrolyzing, and a burner communicates with the tube to receive the mixed gas and burn the mixed gas.