From 8d9f625709bb373abbf9df7f5d8367845dca7b97 Mon Sep 17 00:00:00 2001 From: fdai7057 Date: Wed, 18 Jan 2023 09:55:56 +0100 Subject: [PATCH] implementation of generateID() --- src/CreateCustomer.c | 11 +++++++++++ src/CreateCustomer.h | 4 ++++ 2 files changed, 15 insertions(+) create mode 100644 src/CreateCustomer.c create mode 100644 src/CreateCustomer.h diff --git a/src/CreateCustomer.c b/src/CreateCustomer.c new file mode 100644 index 0000000..26bf617 --- /dev/null +++ b/src/CreateCustomer.c @@ -0,0 +1,11 @@ +#include "CreateCustomer.h" +int generateID() +{ + const int MIN = 1000000, MAX = 10000000; + int p_val = rand() % (MAX); + if(p_val +#include +#include +int generateID();