# Random Id 

+ `AUTO_RANDOM` It is used to solve the hot problem caused by tables containing integer auto increment primary key columns when writing data in TiDB in large quantities
```
create table t (a int primary key auto_random);
insert into t values (), ();
select * from t;
+-----------+
| a         |
+-----------+
| 201326593 |
| 201326594 |
+-----------+
```
------------------------------------------------------------
AUTO_RANDOM is used to solve the hot issue caused by tables with integer auto increment primary key columns when writing data in TiDB in bulk
- Basic use
```
create table t (a int primary key auto_random);
insert into t values (), ();
select * from t;
+-----------+
| a         |
+-----------+
| 201326593 |
| 201326594 |
+-----------+
```
