WASHINGTON -- Bernie Sanders and Elizabeth Warren, two progressive standardbearers, will take the stage on the first night of Democratic debates in Detroit while Joe Biden and Kamala Harris, who clashed in the first debate last month, will be featured again on the same stage the second night.

CNN, which is hosting the two nights of debates at the historic Fox Theatre in Detroit on Tuesday, July 30 and Wednesday, July 31, held a live random draw on Thursday night to determine how to split the 20 candidates taking part in the event.

Ten candidates will appear on each night of the live event. Here's the lineup:

Tuesday, July 30

U.S. Sen. Bernie Sanders of Vermont

U.S. Sen. Elizabeth Warren of Massachusetts

South Bend, Ind., Mayor Pete Buttigieg

Former U.S. Rep. Beto O'Rourke of Texas

U.S. Sen. Amy Klobuchar of Minnesota

Montana Gov. Steve Bullock

Former U.S. Rep. John Delaney

Former Colorado Gov. John Hickenlooper

U.S. Rep. Tim Ryan of Ohio

Author Marianne Williamson

Wednesday, July 31

Former Vice President Joe Biden

U.S. Sen. Kamala Harris of California

Former Housing and Urban Development Secretary Julian Castro

Businessman Andrew Yang

U.S. Sen. Cory Booker

U.S. Sen. Michael Bennet of Colorado

New York City Mayor Bill de Blasio

U.S. Rep. Tulsi Gabbard of Hawaii

U.S. Sen. Kirsten Gillibrand

Washington state Gov. Jay Inslee

As part of the live draw, CNN split the field into three different groups representing the approximate ranking in polls among the candidates, then drew them in such a way as to assure that top candidates would be represented on stage both nights.

Last month, Biden — who has been leading in most polls — was hit hard by Harris, who went after the former vice president on his opposition to busing decades ago as a U.S. senator from Delaware and for comments he made in which he spoke of working with segregationists in the Senate to accomplish goals.

The second night of the Miami debate, which featured Biden and Harris, as well as Sanders, saw Harris' star rise in the polls and questions raised about whether Biden is ready to answer tough questions about his long legislative record in a tough, crowded field.

Meanwhile, the Detroit debates will also see Sanders, who was the runner-up to Hillary Clinton for the Democratic nomination in 2016, face Warren, with both vying to win over the progressive wing of the party. Both have embraced ideas for single-payer health care, education and other programs popular on the left wing of the party.

The first night will also include Mayor Pete Buttigieg, who had an impressive debate in Miami and has been riding a wave of popularity and strong fundraising, and former U.S. Rep. Beto O'Rourke, who, after a strong start, has seen some sluggishness in his fundraising and poll numbers.

The two-hour-long debates will begin at 8 p.m. each night on CNN and CNN en Español. They will also be streamed live on CNN.com without requiring a cable provider login. CNN's Dana Bash, Don Lemon and Jake Tapper will serve as moderators.

While seating is expected to be extremely limited because of tickets being provided to the state Democratic Party, local elected officials and officials with various organizations, the Democratic National Committee is allowing people to sign up free at https://my.democrats.org/page/s/second-dnc-debate if they are interested in attending.

Read more:

CNN, Democrats release list of participants for Detroit debate

In the era of Trump, Michigan's political map is changing. Here's how

Contact Todd Spangler:tspangler@freepress.com. Follow him on Twitter@tsspangler. Read more onMichigan politics and sign up for ourelections newsletter.