optimized dsprandom class