All Questions
Tagged with integer randomness
1 question
0
votes
1
answer
101
views
Generate random numbers in the smart contract
I am writing smart contract and stucked on this line :
int p = 0;
p = (rand() % 997);
This is giving error
error: use of undeclared identifier 'rand'
I do search and got some reference links but ...