<https://blog.kotlin-academy.com/creating-a-random-instance-of-any-class-in-kotlin-b6168655b64a>
c
i wrote a library thats very similar: https://github.com/christophsturm/randolf
๐Ÿ‘ 2
โž• 1
n
@marcinmoskala typo: in the post, itโ€™s
makeAnyInstance()
but in the code, itโ€™s
makeRandomInstance()
m
Thanks, corrected. The concept changed when I was writing. Initially I just needed any instance.
๐Ÿ‘ 1