add standard rand implemention