method type.one_of.random
Contract
Return typewob
No input parameters.
Water Contract
<method type.one_of.random/>
First one of the values in the one_of is selected with equal probability. If that item is a class in its container, then random is called on it and the result is returned. Otherwise, the item from the one_of itself is returned.
<one_of 3 5 7 />.<random/>
returns 3, 5, or 7.
<class boat/>
<class car/>
<one_of boat car/>.<random/>
If boat and car are classes, then an instance of one of those classes will be returned.