You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Sam Rosen (JIRA)" <ji...@apache.org> on 2018/07/23 21:17:00 UTC

[jira] [Created] (TINKERPOP-2014) Allow an ability to specify seeding for random methods such as coin, sample and Order.shuffle

Sam Rosen created TINKERPOP-2014:
------------------------------------

             Summary: Allow an ability to specify seeding for random methods such as coin, sample and Order.shuffle
                 Key: TINKERPOP-2014
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2014
             Project: TinkerPop
          Issue Type: Improvement
            Reporter: Sam Rosen


Currently, all the methods that have non-deterministic behavior such as coin and sample have no ability to set a seed. The ability to set a seed will allow for reproducible and testable behavior as well as more control flow for random processes. If a certain backend does not support seeding, they could simply ignore it. Some possible API changes:

graph.traversal.V().withSeed(2L).coin(.5)

graph.traversal.V().sample(3, 0L)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)