random implementations from data1

.