An accurate tool for the fast generation of dark matter halo catalogues