Consciousness is something separate from environmental awareness. Consciousness is what you have that lets you observe yourself carrying out the actions you are all while thinking yourself to be the one running the show, even though its entirely possible your behavior is not really "yours" to control, but the processes of your body and mind. In other words the 'thing' inside of you that's along for the ride of one quite immersive movie, is what consciousness is.
When you write a program to determine a pseudo-random number, I doubt there's any person that would seriously indulge the possibility that in that moment some entity puffs into existence, imagines itself picking a number, and then puffs back out of existence. But if this is true it makes any path towards artificial consciousness require some rather extensive handwaving and speculation that is not logically justifiable based on what we currently know.
When you write a program to determine a pseudo-random number, I doubt there's any person that would seriously indulge the possibility that in that moment some entity puffs into existence, imagines itself picking a number, and then puffs back out of existence. But if this is true it makes any path towards artificial consciousness require some rather extensive handwaving and speculation that is not logically justifiable based on what we currently know.