Don't be afraid to go after social services you paid for in the past with your taxes too. You paid into the system, now it is time to collect out on unemployment, food stamps, whatever and everything you can find. Don't be too proud or something stupid like that. Every little bit helps. $100 in food stamps is $100 more you have.
Losing your job unexpectedly does funny things to your emotions - it can create feelings of panic, and lead to rash decisions in your rush to get back to a steady income.
Assuming you've got marketable skills and you're not broke, you'll be just fine - but it takes a few days for your emotional, non-rational side to realize this. So don't make any rash decisions until you've calmed down.
Go for walks, do something you find fun, try to put looking for a job out of your mind until the initial shock wears off and you're thinking clearly again. Then and only then should you resume your normal job search.
That's how you keep yourself from foolishly joining 'a random company' - you give yourself time to cope with the shock you've just had.
If you were close with your coworkers, invite them on linkedin and maybe ask if they all want to go get beer.