Ally McCoist's side have a home game on August 20-21 as reward for their 4-0 win over Albion Rovers on Sunday.
Rangers played Berwick four times last season on their way to the Third Division title, drawing one and winning three of the games.
Berwick director Jimmy Crease told Rangers' official website: "The financial implications are huge. We were at Ibrox for the last game of last season and there was a sell-out of 52,048 and I think we provided the 48.
"We were made very welcome and looked after very well and there was a real buzz about Ibrox that day and I'm sure the Rangers fans will come out again this year and give the same support.
"This time we will go away with some money so it's a great boost for our club. Meeting Rangers last season was great for us financially and every club here today wanted Rangers at Ibrox.
"It would have been great to come up with Rangers last season but we didn't quite manage that so this is the next best thing for us."
Meanwhile, Rangers defender Ross Perry still faces six weeks on the sidelines as he fights back from an ankle injury.
Perry said: "I got the cast off this morning and I was in to see the physio today and he's pleased with how it's progressed from a few weeks ago.
"The timing was really disappointing because I missed a lot of last season and I was keen to get a good pre-season. It's part and parcel of being a footballer though so I just have to try to get my head round it.
"I finished last season injured so I was doubly keen to come back strongly and I felt I had a good base of fitness then this happened 25 minutes into the first game."
- Sports & Recreation
- Albion Rovers