import random
from File_operations import  write_to_file
def random_array_generator_function(n):    
    a=[]
    b=0
    while len(a)!=n:
        b = random.randint(0,n-1)
        condition = True
        for i in range(0,len(a)):
            if (int(b) == int(a[i])):
                condition = False
        if condition:
            a.append(b)
    write_to_file("random_numbers_array.txt", a)
    return a

a6ade7f27efc24ad6c739d844101924931736b35
<mask token>

<mask token>


def random_array_generator_function(n):
    a = []
    b = 0
    while len(a) != n:
        b = random.randint(0, n - 1)
        condition = True
        for i in range(0, len(a)):
            if int(b) == int(a[i]):
                condition = False
        if condition:
            a.append(b)
    write_to_file('random_numbers_array.txt', a)
    return a

import random
from File_operations import write_to_file


def random_array_generator_function(n):
    a = []
    b = 0
    while len(a) != n:
        b = random.randint(0, n - 1)
        condition = True
        for i in range(0, len(a)):
            if int(b) == int(a[i]):
                condition = False
        if condition:
            a.append(b)
    write_to_file('random_numbers_array.txt', a)
    return a

import random
from File_operations import  write_to_file
def random_array_generator_function(n):    
    a=[]
    b=0
    while len(a)!=n:
        b = random.randint(0,n-1)
        condition = True
        for i in range(0,len(a)):
            if (int(b) == int(a[i])):
                condition = False
        if condition:
            a.append(b)
    write_to_file("random_numbers_array.txt", a)
    return a
