To the best of my knowledge, there are two ways that random battles were (and probably still are) handled. The first is a step counter - each time you get into a fight or leave a town, a number is generated, and the game counts down each time you take a step. When the number hits zero or becomes negative, a battle is triggered. Others probably generate a random number and check to see if it falls between a specific range of values (i.e. it's less than 0x40).
It's pretty easy to tell if your game does the first. Make an emulator savestate, and count how many steps it takes to get into a battle. Reload the state, repeat. If it's the same number three or four times in a row, try searching for that number in your emulator's cheat search function. If it turns up, freeze its location in memory and see what happens. If that works, eliminating random battles is simply a matter of setting a debugger to snap on write to that memory location, then removing either the store/decrement, or tinkering with the branch.
Might just be the first one, but I thought some terrain had a higher encounter rate.
Pretty sure I remember hearing FF1 did that (subtracting a larger value for each step in a higher-frequency terrain).