sample2 function

Internal Ecospace Functions.