A sequence of numbers where each element is chosen without any predetermined rule or algorithm. It's a concept central to…