dimanche 24 juillet 2022

Fix random seed in Neo4j

I wonder how you would fix the seed of a random number generator in Neo4j in order to make reproducible tries for development purposes. For instance, how would you fix the seed in the following example so that it always yields the same output?

MATCH (p:Person)-[:KNOWS]->() 
WHERE rand() < 0.25
RETURN p LIMIT 100



Aucun commentaire:

Enregistrer un commentaire