random and random.json routing properly