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)