Working randomised filename generation and return as template