data collection and random agent