A concealed, randomized, blinded, sham controlled clinical trial with a parallel group design of 40 patients; Simple randomization method is used. To randomize people in groups, the following command code was given in Kotlin programming language.
val randomValues = List(40) { Random.nextInt(1, 3) }
println(randomValues)
Then, the following output was obtained, which includes the random order of entry of people in groups one and two.
[1, 2, 2, 2, 1, 2, 1, 2, 2, 2, 1, 1, 2, 1, 1, 1, 2, 2, 1, 1, 1, 2, 2, 1, 2 , 2, 1, 2, 2, 1, 2, 2, 1, 1, 1, 2, 1, 1, 1, 1]
Based on this, twenty people are in group one and twenty people are in group two, and for each new person entering, according to this arrangement, people are assigned to group one or two..