How to Plot Random Numbers With On Thingspeak Server using arduino wifi Shield

Please I am trying to use an arduino Due and the arduino wifi shield to send random generated numbers on the thingspeak server.

Have you read the terms and conditions for your thingspeak account? Is that an appropriate use of thingsqueak?

Before you post code again, read the stickies at the top of the forum, and post your code properly!

All that commented out code is NOT part of the problem. GET RID OF IT!

but it is not working.

That is the lamest possible thing you can say here. The code is ABSOLUTELY working. That it does not do what you expect means that your expectations are wrong.

Before we can help you re-align your expectations, we need to know what the code is actually doing, and what you (unreasonably) expect it to do.