Andre Alexander is giddy with anticipation. He saw his new apartment this week.

"This is mine," he said as he looked at the closet and bathroom.

He’s been living on disability and panhandling after breaking his hip four years ago. He’s been homeless since September, sleeping wherever it is warm.

"I got a view," he shouted and laughed as he looked out of a third-floor window.

He signed up for 30 housing lotteries and beat astronomical odds to win this studio.

"I just can’t believe it," he said. "I’m gonna cry. I’m gonna cry."

It's one of 232 units in this new building with a roof garden and a gym. Named One Flushing, it’s the first building completed under the city's three-year-old Mandatory Inclusionary Housing Law, or MIH, which mandates that at least a quarter of the units in rezoned residential property be permanently affordable.

Frank Dubinsky of Monadnock Development said the law "…requires actually that you build affordable housing and in return for that requirement you can build a larger building."

In this case, the building which sits at 133-45 41st Avenue will be 100 percent affordable. It takes up most of 41st Avenue between Main Street and College Point Boulevard and it sits on what was a municipal parking lot. The city sold it for $1 to a partnership between the nonprofits Asian Americans for Equality and HANAC with Monadnock Development.

"The idea is to lower the cost of capital so when you do build a building like this, it’s not under water from day one," Dubinsky said.

MIH is an effort to ease a housing crunch responsible for a record homeless population. The city says some of the 1,400 other permanently affordable units being built now under the housing law will be in buildings like One Flushing that are more subsidized and 100% affordable. Others will be part of developments that are a mix between market rate apartments and affordable apartments; the market rate units help owners defray the cost of below market rate apartments. City Council has approved 5,600 additional affordable apartments, but financing has not been completed.

"MIH is a long game, right, because it does depend on rezoning, which takes time," Deputy Commissioner of Development at the Department Housing Preservation and Development Molly Park said.

Under MIH, individual buildings are rezoned, but so are entire neighborhoods. That has been a focus of the de Blasio administration. East Harlem and Inwood in Manhattan have been rezoned to allow for more dense development. As has Downtown Far Rockaway in Queens and East New York in Brooklyn. Under the new housing law, those rezoned areas are projected to add thousands more affordable units, but also larger buildings.

"MIH allows you to build a bigger building so your fixed cost of getting your construction team on sight and building a foundation is amortized over more apartments and the city subsidizes you in that regard, allowing you to build a bigger building that has more cash flow, and so the unit you build at the top of a building is less expensive than the unit you build at the bottom.  Every unit we add helps us in our bottom line," Dubinsky said.

"As we see the next hot neighborhood come along those buildings get bigger, but what you’re also going to see is permanently affordable housing that allows those neighborhoods to stay to maintain income diversity and the vitality that comes with that," Park said.

Andre Alexander adds income diversity to One Flushing. So far, he’s the only homeless person developers know of who won this housing lottery.

85,000 people entered the lottery that Alexander won.

According to the developers, here’s the breakdown of winners for the 231 total units (1 goes to the superintendent):

117 low income units

114 middle-income units

50% off the apartments received a preference for areas of Queens covered by Community Boards 3, 4 and 7.

66 of the low income units had a preference for a senior member of the household.

There is also 25,000 square feet of retail space that will go to local businesses. Loans for local businesses will be available from Renaissance EDC. The highest rent is $2,302 for a 3-bedroom. The lowest rent is $548 per month for a studio.

Alexander will pay what he can for his studio; the rest will be covered by a federal housing voucher known as Section 8.

"It’s a beautiful place and I’m gonna take care of it," he said.

There will be a ribbon cutting at the building on Thursday. Alexander is expected to move in next month.