To check this you can simply do the Echo $RANDOM.
The results will be:
- Undefined variable if you are from the C-Shell,
- A return prompt if you are from the Bourne shell,
- A 5 digit random number if you are from the Korn shell. You could also do a ps -l and look for the shell with the highest PID.