But this is irreversible, which means you can not generate a private key from the Public Key.
It is one way irreversible not because private key can not be generated from public key, but because the public key or address can not be used to brute force private key. Normally, public key can not be used to generation private key, it will always be private key that will be used in a way the private key used can not be known from the public key or addresses.
A private key is just a number that is picked at random. It is similar to choosing a number from 1 to 2256.
You are right, but this is just like a brain wallet. It is the entropy that normal standard HD wallets are using to generate private keys, the randomness is in the entropy while the private key is later generated from the seed that is generated from the entropy after seed phrase is generated.
It is usually done by bitcoin software through the underlying operating system, which uses a random number generator to generate 256 bits of entropy.
The entropy generated by HD wallet ranges from 128 bits to 256 bits.
| ENT | CS | ENT+CS | MS |
+---------+----+---------------+--------+
| 128 | 4 | 132 | 12 |
| 160 | 5 | 165 | 15 |
| 192 | 6 | 198 | 18 |
| 224 | 7 | 231 | 21 |
| 256 | 8 | 264 | 24 |
ENT= Entropy
CS= Checksum
MS= Mnemonic sentence in words
I am not saying you are wrong, but I just included how private keys are generated in hd wallet which is the standard wallet for now that is embraced by developers.