Referentially tranparent random generation functions
server side of knowledge representation framework