Is this the correct way to randomly return 50% of the stocks in my universe?
Is this the most efficient way to do it?
One liner, either one:
FRank(“random”,#previous) < 50
FRank(“random”,#previous) > 50
This is the most efficient
random>.5
1 Like
Thanks Marco.
Is there a way to do this so that it is repeatable? There are times when I want to try different factors and would like to select that same subset. I have been using Mod(StockID, 5) = 0 or 1 or 2, etc. Is that the best way?
Cary
yes. StockID never changes
Are StockIDs historically unique? That is, they are never reused.
That is correct, they are never reused.