# How to randomly select a specific number of instances in Geometry nodes

I have two geometry node objects. One with ~300 and one with ~90.

I would like to take ~90 instances from the ~300 object and move them to the locations of the ~90 in the other object. But I can't see to find how to randomly grab a specific number.

• Does this answer your question? Geonodes mix position with random index values - How to make random values unique? Jun 6, 2022 at 10:04
• No. That shuffles all of the elements. I would like to just grab a specific number. Jun 6, 2022 at 10:15
• You're right, this is a different question than the one @MarkusvonBroady suggested, but basically it's actually the same problem we have here: The stupid random node can't generate unique values.... Jun 6, 2022 at 10:21
• @TheJeran that's pretty much the same, just make a check Index -> Less Than and pass it to a selection or, multiply the boolean (which is 0/1) by the factor of the lerping in the MixRGB node. Saying it's not the same is like saying the poster there wants to move circles, but you want to move squares. Jun 6, 2022 at 10:40
• What makes this problem potentially different is that with small enough fraction of the entire geometry (below 99% should easily do for my raycasting algorithm there), you shouldn't have to worry about duplicates. Jun 6, 2022 at 10:44