2004-08-23から1日間の記事一覧

続・Loto6のような1から48までの数を6個作るスクリプト

気が付かなかったのですが、コメント欄にもいくつかスクリプトが提示されていました。 "まつもとさん版もどき" collection collection := OrderedCollection new. 6 timesRepeat: [ | n | [collection includes: (n := 48 atRandom)] whileTrue. collection …