Miley Cyrus Has Some Advice For Justin Bieber

'You've got a lot of money. Pay people to make sure you don't get in trouble,' Cyrus suggested to Justin on 'The Tonight Show.'

Miley Cyrus knows how to party and isn't afraid to do it, but have you ever seen a mugshot of her after a wild night out? No.

On Thursday night she visited "The Tonight Show" and explained to Jay Leno why that is while offering advice to Justin Bieber on how to party safely, responsibly and without getting busted by the cops.

"You've got a lot of money. Pay people to make sure you don't get in trouble, and party at your house," she told Leno when he asked her what counsel she'd give to her friend in light of his recent arrest in Miami on DUI and resisting arrest charges
 and charging in Toronto on Wednesday in an assault case
. "Buy a house, and add a club to it."

Sage advice, indeed.

And Miley, who recently tried to stir up more trouble with Madonna on "MTV Unplugged,"
 is the right person to ask because earlier that day she said her fans posted a gallery of celebrity mugshots and she was proud to note that she was not among the wall of shamers.

"I don't see a Miley mugshot yet!" bragged Miley, who was dressed down in jeans and a long-sleeved denim shirt. "And I get the most flack of anybody ... [but] I'm not doing anything illegal! I'm doing a lot of s---, but I'm not doing anything illegal. So that's alright."

Well, actually, "everything I do is legal in California," she smiled.