Are you building for debugging or on a simulator? I know that I encountered such a problem when creating some windowed applications during debugging, the RNG was automatically seeded with a constant value to get consistent results. You may want to check what it actually sows, and if you get different outputs every time you start.
Dan f source
share