- sage: set_random_seed()
- sage: K = Cone([], ToricLattice(0))
- sage: random_element(K)
- ()
- sage: K = Cone([(0,)])
- sage: random_element(K)
- (0)
- sage: K = Cone([(0,0)])
- sage: random_element(K)
- (0, 0)
- sage: K = Cone([(0,0,0)])
- sage: random_element(K)
- (0, 0, 0)
-
- A random element of the nonnegative orthant should have all
- components nonnegative::
+ EXAMPLES:
+
+ The nonnegative orthant is strictly convex, so it is its own
+ strictly convex component and its subspace component is trivial::