random_priority_function¶
- scheduler.prioritization.random_priority_function(time: float, job: Job, max_exec: int, job_count: int) float [source]¶
Generate random priority values from weights.
Warning
Not suitable for security relevant purposes.
The priority generator will return 1 if the random number is lower then the
Job
’s weight, otherwise it will return 0.