move clamped random functions out of cwrap and into TH
2 files changed