Jump to content
Sign in to follow this  
Librarian

[SOLVED]Vex? Issue?

Recommended Posts

Posted (edited)
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×