MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / random

Function random

AgentBench.old/src/tasks/card_game/logic/src/fish.cpp:15–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13std::default_random_engine eng(rd());
14
15double random(double l, double r) {
16 std::uniform_real_distribution<float> distr(l, r);
17 return distr(eng);
18}
19
20void Fish::debug_msg(std::string str){
21 return;

Callers 3

auto_valid_actionMethod · 0.85
auto_valid_actionMethod · 0.85
take_damageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected