Hydrogen may be obtained from all but one of these methods

a.
Electrolysis of methane

b.
Reaction of a metal on a dilute acid

c.
Electrolysis of acidified water

d.
Electrolysis of brine

a. Electrolysis of methane (hydrogen cannot be obtained from this method)