implemented a random draw