3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

"色違いポケモンシミュレータ"

Last updated at Posted at 2020-02-05

乱数を使う練習①
アイテムなしで色違い孵化厳選を行った場合のシミュレーション

import java.util.Random;

public class Irochigai
{
public static void main(String[] args)
{
System.out.println("色違いシミュレータ");

	Random r = new Random();
	int randomValue = r.nextInt(4096);

	if (randomValue == 4096) {
		System.out.println("Irochi");
	}
	else {
		System.out.println("normal");
		}
	System.out.println(randomValue);
}

}

<今後の予定>
・「キーを押してシミュレーションを続行する」を実装
・アイテムや厳選方法による条件の変化に対応

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?