iPhone Application for generating weighted random numbers