Where did your "friend" obtain the pills?
I would advise against taking prescription pills w/o speaking to your MD. Any existing health problems and current drug therapy is important to know before prescribing Provigil. Students can become addicted to "smart" pills like Provigil or Adderall. If you are popping pills to stay awake you will crash.

I know it's tough getting through school, but you have to manage your time better if you want to graduate with your sanity intact.