Check out example codes for "houdini vex loop over points". It will help you in understanding the concepts better.

Code Example 1

// in a detail wrangle
for (int x = 0;x < @numpt;x++){
    vector cd = random(x);
    setpointattrib(0,"Cd",x,cd);
}

Learn ReactJs, React Native from akashmittal.com