(&self, succ: usize, total: usize)
| 140 | } |
| 141 | |
| 142 | pub fn should_shuffle(&self, succ: usize, total: usize) -> bool { |
| 143 | // we expect per 20 programs should have a succ one. |
| 144 | if succ == 0 && total >= 30 { |
| 145 | return true; |
| 146 | } |
| 147 | if succ == 0 && total < 30 { |
| 148 | return false; |
| 149 | } |
| 150 | if succ * 30 < total { |
| 151 | return true; |
| 152 | } |
| 153 | false |
| 154 | } |
| 155 | |
| 156 | pub fn assemble_high_energy_combiantion(&self) -> Vec<&'static FuncGadget> { |
| 157 | log::info!("random assemble new prompt combination with their engies."); |
no outgoing calls
no test coverage detected