How To how ??

I want to move a dice within a cup

If you want to use physics, a very basic way would be to make both objects rigidbodies, make the dice very bouncy and then simply move the cup around, that way the dice should bounce around inside the cup.

I haven’t tested this but it should work