How to generate random uppercase characters in Objective-C

后端 未结 3 897
清歌不尽
清歌不尽 2021-02-11 06:45

How can I generate 20 Uppercase characters randomly in my Objective-C iOS app?

3条回答
  •  死守一世寂寞
    2021-02-11 07:40

    Store ALL uppercase Characters in array,And Generate Random numbers from 0-25,using rand() or arcg4rand(),then retrieve object ay random numbered index respectively.

提交回复
热议问题