hi everyone .. sorry my question a little trivial but unfortunately I can not come to head ... in practice I should copy the values of an array in another array but in a different arrangement (random type).
Place an image to make you understand better why my English is not the best ...
I tried to do it this way but logically it can happen that it copies the same value twice in the array
Question
Shinto
hi everyone .. sorry my question a little trivial but unfortunately I can not come to head ...
in practice I should copy the values of an array in another array but in a different arrangement (random type).
Place an image to make you understand better why my English is not the best ...
I tried to do it this way but logically it can happen that it copies the same value twice in the array
@n = query_sql("SELECT `name` FROM `char`", .@name$); for(.@na = 0; .@na < @n ; .@na++){ .@rand_array = rand(0,@n); copyarray .@sorteggio$[.@na],.@name$[.@rand_array],@n; }
surely there are errors, I would be grateful if someone explained me a little better ...

Edited by Shintoif I have not explained myself well I will try to make myself understood better
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.