06-19-2009 05:12 PM
Hi,
I am trying to create a module on randomization without replacement.
I chose sample size to be 10. in other words, there will be ten trials. the number range is 1 to 10. there can not be any repetition during randomly choosing the numbers. I am able to do randomly choosing the number. However, I can NOT avoid the repetition of several numbers. I have attached what I am trying to do in order to avoid the repetition, but have not succeeded.
I am new at using LabVIEW. I will really appreciate your help on resolving this problem.
Thanks,
Samia
Solved! Go to Solution.
06-19-2009 05:51 PM
Try this...
All my comments are in the code.
06-19-2009 07:32 PM
Start with an array from 1..10 and apply the riffle function.
Use the output of the riffle function in order, one element at a time (e.g. via autoindexing).
06-19-2009 07:40 PM - edited 06-19-2009 07:41 PM
Or you can make your own, e.g. as follows:
06-20-2009 02:34 PM
THANK YOU SO MUCH matt Bradley and altenbach,
both of your ideas gave me multiple ways to resolve my problem. my module is working perfectly
My problem is resolved. THANK YOU.
Samia Alam