Try adding the Data Generation to your KNIME version.
If it is already installed, search for the node "Counter Generation".
It will easily generate sequential IDs. It has 2 parameter. Start From and Interval.
You may want to start from 1 and have step intervals of 1 to generate IDs like 1,2,3,4,5.
As for the Random rows, you can use the node "Row Sampling". It has many parameters, but for what concerns you, you may set it as the following:
Absolute-5 (To get 5 rows)
Take from top (To get top 5)
To draw 5 rows randomly from the set, simply select "Draw Randomly".
0
SteveR
On
The RowID node will generate new sequential row IDs.
If you want a column with an integer sequential index, try a Java Snippet - add an integer column output and set it's value in the snippet code to be the ROWINDEX from the column selector in the top left.
Try adding the Data Generation to your KNIME version.
If it is already installed, search for the node "Counter Generation". It will easily generate sequential IDs. It has 2 parameter. Start From and Interval.
You may want to start from 1 and have step intervals of 1 to generate IDs like 1,2,3,4,5.
As for the Random rows, you can use the node "Row Sampling". It has many parameters, but for what concerns you, you may set it as the following:
Absolute-5 (To get 5 rows) Take from top (To get top 5)
To draw 5 rows randomly from the set, simply select "Draw Randomly".