Agnostiq interview question

How to write context dependent flows in python ? Write an algorithm to flip a coin without using inbuilt random function or any other random package. How random can this get? Use that algorithm as a random number generator to generate numbers from 0-1 Use that algorithm to generate normally distributed random variable. Use the same to do a 1D random walk. Without simulation, tell us what the mean position would be ? Simulate it numerically. Do the same for 2D and what do you expect the area covered by the 2D random walk to be ?