fixed k to be single random number

Signed-off-by: beccawilson <rebecca.c.wilson@gmail.com>