Skip to content

Instantly share code, notes, and snippets.

View kaushalvivek's full-sized avatar
Building cool stuff.

Vivek Kaushal kaushalvivek

Building cool stuff.
View GitHub Profile
@kaushalvivek
kaushalvivek / random_experiment_id.py
Last active November 1, 2019 17:35
A unique random ID generator to split participants in an experiment into control and test groups perfectly.
'''
Random Split for Control-Test Group Division
Equal number of uniqueodd and even participant IDs are
randomly generated to split a group of participants into
control and test groups perfectly.
'''
import os
import random