pragma solidity ^0.8.0;
uint256 private RandNonce = 0;
function RandomNumber() public returns(uint256){
uint256 rand = uint(keccak256(abi.encodePacked(block.timestamp,msg.sender,RandNonce))) % 100;
RandNonce++;
return rand;
}
I made this function in Remix and deployed well. But this function not working errorCode : transact to SimpleCoin.RandomNumber pending ...
what's wrong this function?