here's a better answer.
good and evil are things that apply to humans, not gods. god defines good and evil but is above both. god creates good and evil. god has attributes that if we judged with human morality would be good, and some attributes that would be evil.
this is a very traditional dualistic interpretation of god. at some point, it became bad to say that god was evil in some respect, and another entity was elevated to level of opposing god: satan. this probably happened around the time the writings of samuel and chronicles. there's a section is samuel that describes god leading israel to do something the book sees as evil. when chronicles plaigarizes this passage, it changes god to satan.
personally, i'm inclined to take the earlier dualistic view. i think it fits the scripture better.