draw_data function

Generate binary data