Let's start with this one:
1. Create 256-bit random number. Yeah, a bit difficult to do properly.
This is actually quite easy to do, you just have to use the correct APIs.
In this case you need to generate random bits that will form the private key, the best way to do that is through the hardware random number generator on your computer mixed with whatever algorithms your OS uses.
This is really something that is meant to be done in a programming language, but in Linux you can use a command like
openssl rand -hex 32 to accomplish this for you.