generate random on gpu and add makefile for linux