Generate random tintcolor with setTint?

Using the following AS I can make my_mc´s color change to a random one:


var colorT:ColorTransform = new ColorTransform();

addEventListener(Event.ENTER_FRAME, chgColor);

function chgColor(e:Event) {
    
    colorT.blueOffset = Math.round(Math.random() * 510) - 255;
    colorT.redOffset = Math.round(Math.random() * 510) - 255;
    colorT.greenOffset = Math.round(Math.random() * 510) - 255;

    my_mc.transform.colorTransform = colorT;    

Can I make a function generate a random color tint to my_mc with setTint the same way, or should I do it another way?