Add logic to randomly generate links