vertex stored object

How are vertecies stored in objects?
I want to be able to pick one at random and snap an object to it.
How to do that (process)
pick random vertex from mesh
input coordinates into function that snaps object origin to that coordinate

I can’t find how in the KX gameobject or meshproxy in the API because they don’t say

I found this:

bpy.ops.mesh.select_random(<i>percent=50.0</i>, <i>action='SELECT'</i>)[¶](http://www.blender.org/documentation/blender_python_api_2_71_release/bpy.ops.mesh.html?highlight=random#bpy.ops.mesh.select_random)Randomly select vertices

select meaning make it active?

So is it really a BGE question?
Because bpy.ops.* is only Blender, not BGE. The APIs are completely different.

Well it’s a BGE coding question…so I thought to put it here