package Ġcom . on ur bar man . sc orp case app . util Ċ Ċ import Ġkotlin . random . Random Ċ Ċ object ĠRandom Utils Ġ{ ĊĊĠĠĠ Ġfun Ġgenerate Random Int ( range : ĠClosed Range < Int >): ĠInt Ġ= ĠRandom . nextInt ( range . start , Ġrange . end Inclusive ) ĊĊĠĠĠ Ġfun Ġgenerate Random Double ( range : ĠClosed Range < Double >): ĠDouble Ġ= ĠRandom . next Double ( range . start , Ġrange . end Inclusive ) ĊĊĠĠĠ Ġfun Ġroll ( probability : ĠDouble ): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġrandom Ġ= ĠRandom . next Double ( 0 . 0 , Ġ 1 . 0 ) ĊĠĠĠĠĠĠĠ Ġreturn Ġrandom Ġ<= Ġprobability ĊĠĠĠ Ġ} Ċ }