Attach random asset from a collection?

I would also like to know if this can be achieved, as at the moment i am hardcoding select nodes as a work around