error

Concealment via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Nov 1 18:27:32 PDT 2016


void main(string[] args)
{
     srand(time(null));
     int p1 = rand() % 7;
     p1++;



i compiled this program i wrote... but it keeps giving me an error

main.d(17): Error: undefined identifier 'time'

can someone help me please?


More information about the Digitalmars-d-learn mailing list