Hi,
When I try to use shuffle to put some numbers into the array, it shows double in my array.
Anyone have an idea?
Shuffle isn't working
Hi,
When I try to use shuffle to put some numbers into the array, it shows double in my array.
Anyone have an idea?
Hi, welcome to this forum.
There is no problem with the [shuffle] object, but actually your patch is not properly constructed. You are sending the shuffled numbers to the [f]x[+ 1]
, so it will not work as a counter from 0-8, which is what you need here. Also, I do not understand why you are using select 0-8 to bang messages with numbers from 0-8, when [shuffle] itself outputs numbers.
This will work better:
[9(
|
[until]
|
[t b b]______________
| |
[shuffle 0 8] [counter 8]
| |
[tabwrite randomFiles]
You can download this patch here: shuffle.pd
I hope this helps. Take care,
Gilberto
Thanks mate, I forgout about this post
The problem was that the array had to be reconstructed because it was already filled in, so I had to put a new one in and run the code over again.
Hi, no problems at all, but are you sure your problem was only that your array was already filled in? I really believe your patch above showed some problems with its construction, as I mentioned in my post before. Nevertheless, I am happy you solved your problem.
Take care,
GIlberto
Oops! Looks like something went wrong!