how can i configure ESP-8266 as AP with Dynamic SSID everytime.

Respected All,
How can i configure ESP-8266 in AP mode and it should stay in AP mode after changing SSID and PW.
i have used WiFimanager library and code to check whether i can apply new SSID to it but it will use to connect to router.
Here is my reason:
I have to build 100's of IOT device which can be controlled via ESP-8266 but if those will have same SSID and PW then every device cant be seen on mobile device. So i will have to change SSID of each and everyone by hard coding. But i dont want to hard code 100 times or more so is there anyway to solve this problem.
I am new in IOT and found out this problem recently because i have not used so many ESP-8266 for single purpose.
So kindly help me.
Thank you.

Maybe you could base the SSID on the 32-bit ChipID:

ESP.getChipId() returns the ESP8266 chip ID as a 32-bit integer.

Yes, I will have its MAC address as CHIP ID right that way all chip will have different ID's So i will use it for SSID directly am I correct sir.
Thank you so much sir.

Sir here I m getting this as integer:

unsigned int ssid = ESP.getChipId();
char* password = "123456789";

Serial.println("SSID =" + (String)ssid);

output:

SSID =3004721

I am getting as integer only 7 digit.
Is this the correct way to use it? kindly confirm please.
Or is there any other way to do this?

OK sir I am getting this number in Decimal format so i think there wont be any issue.
so when i have checked from decimal to hex i have got last 3 bytes: of my main MAC address which is xx:xx:xx:aa:aa:aa
So here i have got aa:aa:aa.
Thank you sir, I have understood many things from this forum thank you.!