kajal: I am using Unity3D.
This is not really the unity3D forum, and your question is quite vague.
You can start with this code, which can help you teleport the object in a random direction with the force you pass as a parameter, then you will need to adapt it so it moves in the direction instead of teleporting, for this you can use Lerp:
http://docs.unity3d.com/ScriptReference/Vector3.Lerp.html static float RandFloat()
{
Random random = new Random();
double d = (random.NextDouble() * 2.0) - 1.0;
return (float)(d);
}
void Throw (float force)
{
var dir = new Vector3(RandFloat(), RandFloat(), RandFloat());
transform.Translate(dir * force);
}