primitive AI with random inserted