nflorentin
Joined 5/6/2019
nflorentin said over 5 years ago on Nested Forms from Scratch with StimulusJS :
Thanks for this video! I have one doubt though, the `Math.floor(Math.random() * 20` has a high probability to repeat itself. In that case, only one record will be created. Why not generating a more complex number to avoid that ?

nflorentin said over 5 years ago on Nested Forms from Scratch with StimulusJS :
It produces a number between 0 and 20. Imagine you add 15 tasks to your todolist, probability of having a repeated number is almost 100% ... !