[Tfug] random squares

christopher floess skeptikos at gmail.com
Sun Oct 21 12:29:33 MST 2007


Hi, everyone. I have to write a program in java that
involves a 2d array as a game board. Given a number
in the constructor, I have to assign that many squares
to be 'mines'. I know I could use math.random(), but
would anyone recommend a better way to do this?

~ Chris


-- 
Q: What did the zen buddhist say to the hotdog vendor?

A: Make me one with everything ~ Dr. Jonathan Katz




More information about the tfug mailing list