Numbers 27:21 ASV

Numbers talks alot about people using oracles. In this passage Joshua uses an oracle, but how did they know the difference between an oracle and a fortune teller? I mean people today say they can see the future so who are the good guys and who are the bad guys?