Select one random vertex with geo nodes

Hi! I’m trying to select a random vertex from a mesh but already got stuck with the random number generator. It sorta works but for some reason multiple verticies are selected instead of just one. Here is the node setup that I made:

As you can tell there are multiple points which means multiple indexes equal the random value? If I don’t use the random number but input the index manually it works as expected.

Also is there a way to visualize what the random number is?
Thanks

Try setting your generator from float to int.

Hope that helps

I already tried it, it didn’t help

Welcome!

Try using a constant ID:

image

Good luck!

3 Likes

Oh you want one number?

Thank you this worked!

1 Like

Yes, sorry if i wasn’t clear, thanks for the help

1 Like

Viewer node with spreadsheet.

1 Like

I see, thank you!