State Sen. Bill Brady will have the top ballot spot in the March 18 primary for governor, due to a lottery conducted Wednesday at the State Board of Elections.

Following Brady — a member of the state Senate from Bloomington and the 2010 Republican gubernatorial nominee — will be state Treasurer Dan Rutherford of Chenoa, state Sen. Kirk Dillard of Hinsdale and venture capitalist Bruce Rauner of Winnetka.

In the Democratic primary race for governor, Tio Hardiman of Hillside, a former head of an anti-violence group, will get the top spot, followed by Gov. Pat Quinn of Chicago. Objections are pending to nominating petitions of both of those candidates.

The statewide lottery — which featured numbered balls being picked out of a wooden box by Becky Glazier, assistant to the executive director of the state board — determined ballot order for candidates who were in line to file when the filing period started at 8 a.m. Nov. 25. People who filed later will generally be on the ballot in the order they filed.

One other GOP candidate for governor, Peter Edward Jones of Franklin Park, will be fifth on the ballot unless a pending objection to his petitions yields the removal of his name.

A lottery was also conducted earlier Wednesday at the Sangamon County election office, with only one primary in the balance — the Republican contest for sheriff. Retired sheriff’s Lt. Wes Barr got the first position, and Undersheriff Jack Campbell will be listed second.

Barr, who attended the drawing, said he is “honored and happy to be first on the ballot.” He said he’s heard that for people who don’t really know who to pick, “they sometimes go for the first name they see.”

Campbell said later he’s “happy to earn the spot on the ballot to begin with,” and said voters have been receptive to him.

“I know those voters are going to seek out the most qualified candidate,” Campbell said.

Other races affected by the state election board’s lottery are the primaries in the 13th Congressional District.

On the Republican side, incumbent Rodney Davis of Taylorville will top the ballot, followed by Michael Firsching of Moro and Erika Harold of Urbana. Among Democrats, ballot order will be Ann Callis of Edwardsville, George Gollin of Champaign and David Green of Champaign. A fourth candidate who filed later is Bill Byrnes of Bloomington, and there is a pending objection to his petitions.

In the 96th House District, Democratic challenger Gina Lathan of Springfield will be in the top ballot position, followed by incumbent Rep. Sue Scherer of Decatur. On the GOP side, only Mike Bell of Edinburg filed by 8 a.m. the first day. Second on the ballot will be Landon Laubhan of Springfield, who filed at the deadline on Dec. 2.