Implementing a random router.