As Stevie G said, the number returned is the entity handle of the entity that was picked by the pick operation. If the pick operation returns a zero, then no entity was picked (in which case you will get an error if you try to use the returned result with any function that requires an entity handle). Note that entity handle values will be different each time you run your program.