標籤

顯示具有 小程式 標籤的文章。 顯示所有文章
顯示具有 小程式 標籤的文章。 顯示所有文章

2013年4月14日 星期日

用來欺騙老師的最後手段---破損檔案製造者 File Destructor 2.0

http://www.xnet.se/fd/

File Destructor 2.0


Want to play games on your Playstation 
but got a deadline for an exam or report that didn’t match your gaming ambitions?

Then you have come to the right place.
Send trashed files and blame your faulty computer, instead of confessing that you are a lazy bum who just wants to play video games.

p.s. 要老師唔知道有呢個PROGRAM

2013年4月6日 星期六

Java亂數抽籤程式


在很多場合都會用到抽籤功能,傳統的有用竹筷子上面寫數字放入籤筒裡來取得,還有用紙張寫數字折起來來取出需求數字,不過這些方法都可能會有人為的干擾,最好的方式還是交由程式來取得亂數,當做抽籤結果,以求公平。
這個範例是利用Java亂數來製作的一個抽籤程式,可以選擇是否取數時可允許重覆的數值取得。畫面如下:
RndApp1.jpg
程式碼如下: