KRzA/4-lab/xclip
Marcin Woźniak 0157e48d62
Added
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2020-11-23 20:06:53 +01:00

13 lines
221 B
Plaintext

def randomNumber(k)
randomNumberArray=[]
randomNumberArray << 1
k= k - 1
while (k !=0 ) do
j = SecureRandom.random_number(2)
randomNumberArray << j
k = k - 1
end
return randomNumberArray.join
end