use create_random_ops function