I tried a lot by field calculatorField Calculator but it gives me nullNULL
as you show in table and another try it gives me value 1 in all rows.
Most of examples, on internet they are exlainingexplaining old version and I have QGIS version 3 andand I am not sure how can I add id for all rows .
If I want to generate random id, how can I do it also.
iI did as suggested in answer $id
$id
butBut could i ask why the values are not looks like counter ,it it looks random . if If i need to increase by one ,how how can i do that?