After spending 40 of her appointed 76 days in "punitive segregation," Foxy Brown is free at last ... sort of. The rapper, whose real name is Inga Marchand, was released from solitary confinement at the Rose M. Singer Center for women on New York's Rikers Island due to good behavior, according to TMZ.com.

Marchand, who has been on Riker's Island since August for violating probation, was placed in solitary confinement after refusing to submit to a drug test, allegedly attacking another inmate and verbally assaulting prison officials.

The rapper's legal woes, which led to her one year prison sentence, began when she pled guilty to to misdemeanor assault charges stemming from an altercation with two manicurists in August 2004. The rapper continued her run of bad behavior and was arrested in February 2007, after allegedly throwing a bottle of hair glue at an employee in a Florida beauty salon. Her legal trobles continued when she was indicted on assault charges in August 2007, for allegedly throwing her cell phone at her neighbor in Brooklyn.