Not even a newbie programmer is going to do this. Every language out there has a Random() function.
Seriously, all these worst case scenarios and we're still well within the land of what even a middling iOS developer could crank out in under an hour.