Charlie Sheen has slammed the judge who refused to give him custody of his twin sons.

The troubled actor lost his court battle against former wife Brooke Mueller for their two-year-old sons Bob and Max last month, even though she is now in rehab after refusing to take a court ordered drug test, and the comic star insists the ruling is a "s**t sandwich".

He said: "I thought it was a s**t sandwich. Two slices of bread filled with s**t. Seemed like there were rules in place and it seemed like someone didn't follow them. And there's no consequences, so I don't get it. System is broke, you know."

Instead of receiving the full custody he was seeking, for the next two months, Charlie will have the boys every other weekend from Saturday morning to Monday morning. After that -- provided both he and Brooke stay alcohol and drug free - he will have them an additional Wednesday morning through to Thursday morning.

Charlie -- who has battled alcohol and cocaine problems -- is also unsure if he will replace his 'goddess' girlfriend Bree Olson after she dumped him via text message because it is difficult to find someone with the right "variables" to join him and his other lover Natalie Kenly.

When asked if he is looking for a new 'goddess', Charlie told E! News: "Probably not today. That's all I know. Not going to happen today. I don't know. You know I was pursuing that with all the right intentions and what are you going to do? People bring variables. I mean, depends on who it is."