Are you turning the synthdef into a buffer with line 5? And then resampling it through the \sample synthdef? edit: Just saw RecordBuf ugen... jeez dude... absolutely next level...
I notice the use of "exprand" yet there is no help documentation for this. There exists "ExpRand" but this produces errors when used following your code.