Shuffle
How would I shuffle a set of integers? For example, you have set of hundred integers in ascending order: 1, 2, 3, 4, 5, 6, ... 100. The goal is shuffle this set into a random order with all 100 integers present, every integer just once. Hopefully there's a macro somewhere!
Comments
-
There was a long thread on the old forum. Pretty sure I uploaded a Fisher-Yates implementation. Might still be up on waybackmachine.
0 -
Fisher-Yates seems the way to go. It's easy to do it with code, but probably not in Reaktor.
Any idea when your Shuffle was in the forum? If I can't find it, would you be up for redoing it?0 -
heh, I wouldn't be redoing it, but I did find a version. Doesn't have all the bells and whistles, but it seems legit and has sum test code around it to demonstrate the functionality… from 2010… lol
0 -
Yay! Thanks for the shuffle and all your delightful deep ensembles, I've been a fan for many years.
1 -
I don't think implementing Shuffle with Reaktor is a difficult task. You can do it by constantly swapping the positions of values in an array, but I think the difficulty lies in dealing with a series of discontinuous numbers. We can use the Iteration module to generate a series of continuous numbers, and of course, you can also use the Randomizer module to randomly generate a series of discontinuous integers. However, please remember that there will definitely be duplicates in the generated integers. If you want to customize these integers and then do Shuffle, I think combining Event Table and Core Cell is the most effective attempt.
Here, I have provided you with a Shuffle for consecutive numbers.
0
Categories
- All Categories
- 19 Welcome
- 1.4K Hangout
- 60 NI News
- 735 Tech Talks
- 3.9K Native Access
- 15.9K Komplete
- 1.9K Komplete General
- 4.1K Komplete Kontrol
- 5.5K Kontakt
- 1.5K Reaktor
- 364 Battery 4
- 817 Guitar Rig & FX
- 416 Massive X & Synths
- 1.2K Other Software & Hardware
- 5.5K Maschine
- 7K Traktor
- 7K Traktor Software & Hardware
- Check out everything you can do
- Create an account
- See member benefits
- Answer questions
- Ask the community
- See product news
- Connect with creators