Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

SUDOKU GENERATOR

Name: Anonymous 2009-03-08 5:04

/prog/ can you make me a sudoku generator that will produce a random sudoku on it's first attempt. Closest I've gotten involved three attempts at max.

Name: Anonymous 2009-03-08 22:00

#!/bin/sh

SUDOKU_DIR=$HOME/sudoku

mkdir "$SUDOKU_DIR"
cd "$SUDOKU_DIR"
wget -r -np -l0 -N -nH --cut-dirs=2 -P "$SUDOKU_DIR" -A.png http://www.dailysudoku.co.uk/sudoku/png/

find "$SUDOKU_DIR" | grep -E '/[0-9-]+\.png$' | perl -e 'rand($.) < 1 && ($l = $_) while <>; print $l'


also:
http://www.google.is/search?hl=is&safe=off&q=random+line+from+file&start=20&sa=N
Vegna lagalegrar beiðni sem Google barst, höfum við fjarlægt 1 niðurstöður af þessari síðu. Ef þú vilt getur þú lesið meira um þessa beiðni á ChillingEffects.org.
http://www.chillingeffects.org/notice.cgi?sID=1161
Child Pornography Complaint in Google Search
what the fuck? there was CP in a google result for "random line from file"?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List