An other try for the random host generation