Lines 28
##### Keywords
bogosort (5) flow charts (4) nodebox (8)
##### Permissions
Owner: Theodore Test
Viewable by Everyone
Editable by All Siafoo Users
Bored? Check out the Recent Activity on Siafoo

# Bogosort Flow Chart 0

 In Brief A quick script to generate a flow chart for the Bogosort algorithm.... more
 Language Nodebox Python
# 's
` 1'''A quick Nodebox script to generate a flow chart for the Bogosort algorithm.''' 2 3 4size(500,500)     5fill(0.9) 6stroke(None) 7rect(0,0,WIDTH,HEIGHT) 8colormode(HSB) 9fh = 59.010fs = 71.011fb = 97.012fill(fh/100,fs/100,fb/100)13stroke(0)14strokewidth(2)  15fontsize(25)16171819push()20translate(36,0)21named_rect_node(0,50,200,80,text_string='Start',round_edges=0.5,draw_it=True)22named_rect_node(0,400,200,80,text_string='End',round_edges=0.5,draw_it=True)232425fill(1)26named_diamond_node(0,200,200,100,'Is Sorted?')27named_rect_node(275,200,150,100,'Shuffle')  2829fill(0)30ps = 731bs = 13632d_x = 10033straight_flow_arrow(d_x,135,d_x,195,pointer_size=ps,text_string='',back_stroke=bs)34straight_flow_arrow(d_x,305,d_x,395,ps,text_string ='Yes',back_stroke=bs)3536straight_flow_arrow(d_x+60,225,d_x+170,225,pointer_size=ps,text_string='No',back_stroke=bs)37straight_flow_arrow(d_x+170,275,d_x+60,275,pointer_size=ps,back_stroke=bs)`

A quick script to generate a flow chart for the Bogosort algorithm.