Roughly, you can use this rule of thumb:
-то = some...
-нибудь = any...