let’s do it in python…
import bpy
import random
# you can change the name object here or name your object plane
# if there is no object named "plane" it'll create one
if not 'Plane' in bpy.data.objects:
bpy.ops.mesh.primitive_plane_add()
# every frame change, this function is called.
def my_handler(scene):
frame = scene.frame_current
# here is the step looking for multiple of 25
if frame % 25 == 0:
x = random.randrange(-10,10) #the range in blender Unit the object ll move
y = random.randrange(-10,10)
z = 0.0
ob = bpy.data.objects.get("Plane") #creating a brand new name for the object
ob.location = (x, y, z) #positioning the object
bpy.app.handlers.frame_change_pre.append(my_handler)