Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@baeovvulf mind you it is 'the function *FOR* new born baby' ... I would expect google to return 'FUCK' as the only answer
-
taosif711826yHere's your function:
function baby(Human.male father, Human.female mother){
DNA babyDNA = DNA.generate(mother, father);
int birthdateFactor = 0.9 + (Math.random() * 0.2)
Human.Indeterminate baby = new Baby(60*60*24*30*9*birthdateFactor, babyDNA);
return baby;
}
I dont have second paramter to this function yet, so I haven't tested this code myself yet. -
Sorry! I of course meant this (for readability as discussed here https://devrant.com/rants/1520626/...)
While I was searching something specific
rant