Random Number Generator

Discussion in 'General Support' started by Keyble, Jun 26, 2020.

  1. Keyble

    Keyble New Member

    Joined:
    Jun 26, 2020
    Messages:
    1
    Likes Received:
    0
    Hello there, can you help me with some? I need to do random number generator to @ people, like every man need to be with a random number, how can I do this?
     
  2. Fisheiyy

    Fisheiyy Member

    Joined:
    Apr 11, 2020
    Messages:
    104
    Likes Received:
    4
    you dont.
     
  3. NoahH

    NoahH Member

    Joined:
    Feb 23, 2020
    Messages:
    56
    Likes Received:
    4
    Yes you do.
     
  4. NoahH

    NoahH Member

    Joined:
    Feb 23, 2020
    Messages:
    56
    Likes Received:
    4
    You should be able to put:
    let a = msg.guild.members.random();
    Actions.storeValue(a, 1, "randomMember", cache);
    in a run script. This will give you a random member in a temp variable: tempVars("randomMember")
     

Share This Page