Solved Generating a Random 4 Digit Number

Discussion in 'Plugin Development' started by AlexHH251997, Jul 21, 2014.

Thread Status:
Not open for further replies.
  1. Offline


    Hi there,

    For one of the plugins I am working on, I need to create a random 4 Digit Number and then save it to a configuration file. I know how to save it to the file I just don't know how to actually create the 4 Digit Code. I'm looking for anything inbetween 0000-9999. The digit can be used more than once, any help would be grateful.

    Alex Harris
  2. Offline


    Generate four integers then arrange them in order
  3. Offline


  4. Offline


  5. Offline


    AlexHH251997 likes this.
  6. Offline


Thread Status:
Not open for further replies.

Share This Page