added adapters to/from math/rand Source