Update create_random_seed
updated how positions were turned into indices