Some states have specific laws as to how their electors must vote, others (such as Washington State) do not.

The concept of the Electoral College was broached in Federalist Papers No. 68 [avalon.law.yale.edu].