MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / operator()

Method operator()

unittests/catch.hpp:8227–8229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8225 }
8226
8227 RandomNumberGenerator::result_type RandomNumberGenerator::operator()( result_type n ) const {
8228 return std::rand() % n;
8229 }
8230 RandomNumberGenerator::result_type RandomNumberGenerator::operator()() const {
8231 return std::rand() % (max)();
8232 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected