The draw for the Scottish Cup second round has been made and Rangers will play Highland League champions Forres Mechanics.