It's called RNG abuse. Basically, just about every variable in the game is determined by a pseudo-random number generator. The pseudo means fake since the numbers it makes are predictable with some math and therefore not truely random. People use RNG abuse to catch/hatch shiny Pokémon or Pokémon with high IVs.What is RNG hacking and will it harm my game?
Simple, walk out of the fossil place, then go back in and talk to the guy that took your fossils. He will give you a Pokemon based on what fossil you got.
Are you seriously answering questions from 3 years ago that have already been answered? And don't double post.