Need to move player what was rolled on the dice

so i have 2 dices and the code for them are

function rand(a:Number, b:Number){
var del:Number = b-a;
var num:Number = Math.round((Math.random()*del)+a);
return num;
}

test.onRelease = function(){
var num = rand(1,6);
die1.gotoAndStop(num);
die1._rotation = rand(0,360)
die1_text = "Die 1’s Value is: "+num;

var num = rand(1,6);
die2.gotoAndStop(num);
die2._rotation = rand(0,360);
die2_text = "Die 2's Value is: "+num;

}

and i want to know how do i make somthing move to the number thrown on the dice ?