1 of 1 people found this helpful
I will consider you are working with CYW20719 device.
So you can generate a random number using functions available in /20719-B1_Bluetooth/include/20719/hal/wiced_hal_rand.h. The advertisement data is set using a function, for ex. hello_sensor_set_advertisement_data() in your project .c file. Here you can pass the desired device name and the required number instead of only device name.