hi java programmers,

i have a simple question about my math game,

i need to randomize 2 numbers using 1 method

this is the method i have to randomize the number from 0-20

public static int addsubrandomizer () { Random rand = new Random (); int ranaddsub = rand.nextInt (21); return ranaddsub; }

and here is where i return my data to

addsubnumber1 = addsubrandomizer (); addsubnumber2 = addsubrandomizer ();

but i cannot figure out why they output the same number for addsumnumber1 and addsumnumber2

can someone help me figure this out please

thanks