add missing call to closeConnection() in createRandom(), reformat
Merge pull request #30 from HackerPartie/manu_branch

add missing call to closeConnection() in createRandom(), reformat