コード例 #1
0
 private Node GetRandomBandNode(DatabaseRule embeddedDatabase, Label bandLabel)
 {
     return(embeddedDatabase.FindNode(bandLabel, _nameProperty, "band" + (ThreadLocalRandom.current().Next(1, NUMBER_OF_BANDS + 1))));
 }
コード例 #2
0
 private Node GetRandomCityNode(DatabaseRule embeddedDatabase, Label cityLabel)
 {
     return(embeddedDatabase.FindNode(cityLabel, _nameProperty, "city" + (ThreadLocalRandom.current().Next(1, NUMBER_OF_CITIES + 1))));
 }