coin
Legend
Details
Syntax conventions | Description |
---|---|
Lowercase and uppercase |
Literal keyword. Includes |
|
Variable value. Replace with a user-defined value. |
|
Optional.
Square brackets ( |
|
Group. Braces ( |
|
Or.
A vertical bar ( |
|
Repeatable.
An ellipsis ( |
Description
The coin()
step is a filter step that can be used to get a random coin toss with the inserted odds between 0.0 and 1.0.
Examples
Find a random set of ingredients that, for instance, must be used in a cooking contest:
g.V().hasLabel('ingredient').coin(0.1)