Tag : rand

How to insert into mysql table random number 0 or 1

For test purpose I needed to populate a table field with random int number 0 and 1. The RAND() function from mysql return numbers between 0 and 1