Jump to content

[SOLVED]Vex? Issue?


Recommended Posts

int count = chi('count');
float seed = chf('seed');
int iarr[] = array();
for (int i = 0;i<@numpt;i++){
    iarr[i]=i;
}

function void shuffle( int a[];float seed 
    float b[] = {};
    for(int i = 0;i<len(a);i++){
        push(b,rand(i+seed));
        }
        int c[] = argsort(b);
        a = reorder(a,c);
}
shuffle(iarr,seed);
i[]@arr = iarr;
i@variant = iarr[@ptnum]%count;

//i@variant = floor(rand(@ptnum)*count);

function void shuffle( int a[];float seed
this Line its Wrong total Stop 
Solved

"function void shuffle(int a[];float seed ){"

Edited by Librarian
Link to comment
Share on other sites

  • Librarian changed the title to [SOLVED]Vex? Issue?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...