Hi,
I am looking to write simple loop that can do something like below. I am unable to find any matching articles on internet or poweruser forum.
For i=1 to 10
Next
or
For (int i=0; i<10; i++)
{ }
Purpose of this is to use Rand function to pickup random set of data and create custom collection. Here is what is the scenerio.
Sharepoint List A has around 200 records. Data is grouped and i need to pickup multiple set of data.
2 collection based on above 200 records need to be created based on below parameters.
Collection X will have 20 records
Collection Y will have 10 records.
Above count will vary based on user input on screen. Based on Parameter selection on screen, records in X can be anything between 2 to 50 and same is the case for Y.
I need to randomly pickup records and populate into collections X and Y.
Please suggest solution.
Thanks
Priyank