Home
Eruption - What is LavaRnd?
Obsidian - FAQ
Lava - Demos
Lavaologists - About us
Strata - New and old stuff
Magma - Download
Bedrock - Developers

Terms & Definitions

n-way turn

The n-way turn converts input into n sets of output. The n-th output set is given every n-th octet of input data:
  • the 1st input octet is placed into the 1st output set
  • the 2nd input octet is placed into the 2nd output set
  • ...
  • the n+1-th octet is added to the end of the 1st output set
  • the n+2-th octet is added to the end of the 2nd output set
  • ...
  • the 2*n+1-th octet is added to the end of the 1st output set
  • the 2*n+2-th octet is added to the end of the 2nd output set
  • ... and so on until all input octets are processed

For example, in a 5-way turn, each of the 5 sets picks up every 5th input value. A 5-way turn on the following input:

00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19

would produce these 5 sets:

00 05 10 15
01 06 11 16
02 07 12 17
03 08 13 18
04 09 14 19
SourceForge.net Logo
Home  |   LavaRnd?  |   FAQ  |   Demos  |   About us  |   New & Old  |   Download  |   Developers  |   Tour