This is prob why that happens.
the rand(n) is taking the steps to encounter and suing it as its max, (so if steps are say 50, it will be a number between 0 - 50)
so rand(50) + rand(50) + 1 say numbers are 20, 10 so 31 is the required steps.
you can edit it to be more specific with what you want. that and if you where just Wondering how it made the random encounters.
or you can use this little code, it will make sure that when the player takes the encounter steps then it will encounter an enemy.
class Game_Player < Game_Character
#--------------------------------------------------------------------------
# * Make Encounter Count
#--------------------------------------------------------------------------
def make_encounter_count
if $game_map.map_id != 0
@encounter_count = $game_map.encounter_step
end
end
end
just paste it above main bellow the defaults