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

    AlexHH251997

    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.

    Regards,
    Alex Harris
     
  2. Offline

    Giraffeknee

    Generate four integers then arrange them in order
     
  3. Offline

    Dragonphase

  4. Offline

    AlexHH251997

  5. Offline

    _Filip

    AlexHH251997 likes this.
  6. Offline

    AlexHH251997

Thread Status:
Not open for further replies.

Share This Page