Hi guys i just can't write the rand() to return specific number from 0 up to 6.
Can anybody help me out.

Thanks alot.