Generates names from notable scientists and hackers.
Ported from Docker: names-generator.go
Docker license: Apache v 2.0
Calling the NameGenerator Object without any parameters requests a random name. All names called this way use a shared instance of Random, meaning the chance of a collision is fairly small.
Note: It is not impossible for the algorithm to produce the same name, we recommend verifying that the name is unique before using it.
val pd: String = NameGenerator() //pedantic_dijkstra
val ee: String = NameGenerator() //evil_euler
val cw: String = NameGenerator() //clever_wozniak
We have added the ability to specify a seed for the generator to that you may construct tests around a particular name. You may pass in either an Int or Random for the seed.
println(NameGenerator(1000)) //distracted_kowalevski
println(NameGenerator(new Random(1000))) //distracted_kowalevski
Our license: MIT
Copyright (c) 2015 Thirdship