DA
Actually solidity is not capable of creating random numbers in a specific range. encodePacked is used to encode in-place means it generates the combined encoded hash code and further keccak256 generates a unique 32 hash code. I searched google for other ways to generate the random number. I found this blog they explained better than so i stopped my explanation pls follow this link. https://blog.finxter.com/how-to-generate-random-numbers-in-solidity/ why modulo? To convert a 32 byte uint number to a specific range. We have to use modulo function..
