Update randomizer.php

> Added __destruct() to close databse,

> Reduced One function and replaced that with array

> Added functionality: randomizer_error() for displaying last error. 

> Function now returns true or false.(Useful for debugging)
Merge pull request #2 from nootanghimire/patch-1

Update randomizer.php