Generate and Persist the Next Randomization Result
Source:R/f_random_service.R
getNextRandomResult.RdRetrieves the next random allocation value, generates a new randomization result using the specified method, updates the system state, and persists all relevant objects in the database.
Usage
getNextRandomResult(
randomDataBase,
randomProject,
randomMethod,
randomAllocationValueService
)Arguments
- randomDataBase
Object providing access to randomization data and persistence methods.
- randomProject
RandomProjectreference class object representing the current project.- randomMethod
Object implementing the randomization method with a
randomizefunction.- randomAllocationValueService
Service object for managing random allocation values.