title: How to auto generate object when the class get no params
body: <p>So i have simple class named <code>Person</code>, this class have several fields:</p>
  
  <pre><code>class person {
  
  val name:String
  val abe:Int
  
    def generateRandom(): Person {
  
       // Here i want to generate Person and return
    }
  }
  </code></pre>
  
  <p>So as you can see i want my class will have the option to generate <code>random</code> <code>Person</code> but i don't want to pass any params to my class, i want it to be auto.
  So how can i create new <code>Person</code> object inside this <code>generateRandom</code> method and return it with both <code>name</code> and <code>age</code> fields ?
  Any suggestions how to implement it ?</p>