From 642b642e47a2a3b0aab58aae9aa02c4abac721fa Mon Sep 17 00:00:00 2001 From: Sage Burger Date: Tue, 15 Aug 2023 19:23:00 +0200 Subject: [PATCH] Yodafied random numbers i have --- bin/App.class | Bin 562 -> 1449 bytes src/App.java | 32 ++++++++++++++++++++++++++------ 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/bin/App.class b/bin/App.class index baa6c6726ecc7ff0468f1be52445c21d3cbd1d3d..5cef78c82332bd7f2a7b34e4a0c6cf93462080e7 100644 GIT binary patch literal 1449 zcmaJ>+j1L45Iti{T3HBe%P78JCu4AklnBY(3`B{+F&M8=xY=cj;>9CrBCWlud;~>tR#GZ**~QCr_ssN})2Dm)uYaHa3E&|b4yFXAcX~YsDS^3D zb*^f@3OluLny0#D1u_r3(6igTR4N|}q;^eP=P-?#JkrPr%r?AGf87t7IyzEKUkel( zrltI26?sWK-b~r97Yn2te5y{EKzX6SjnYqzmrowr$O}95^6?DjvEZO^iO}I7wmQh; zbrea)^vSI_O7=|cTV`73YZcV9SQJ>>ku5Tnk^Z@_V=D)yFT3ho%RsetC5L6a;b28z zVfg%IggjQUCgAiEP@go5rR!K`aZBLVo>q|zjjhNhCX%jHf$Zu?OKYU^+SM%9NyZK3 z0hO&tB@=P`s-tCWWG7N#yOPCQ$(1|4FMS=hhg20o{2tXH>9AdOaQlT8ee3zP@40D$ z95yhMETufkxJ$;NzOZgcWl|-#>=xMKN*?c^DzF%+GreoVma;#1wo5OzDzt3LV##&g z^3?*f*c4cPtOn9{^+?R7mcKALVaTddD(WzQ;hGk5Y?9JUkW9l+;R)Joe>U(!*3jX! z2sa7U#f$KQTLU&Y?lU=eX!=o0?|I2wWjQ+41dLKVGRDR>QoYC8c1=6Z;Zy85_)K79 z_}p-Wz3|+e>Dp+lMz!y$mNn5J5#^D?@J+&cf(LeyS|EJ z9Xr?;xP7Jc>xyx3AaL{lud;um%CQdif^!5+(c>4-)nQbl6}0KQ&yf9Xc%0*!9D@n3 zaLtb{(7wuO2Cre3J4`0|^bq9icgz)TJjGICZ;q`T+c#Q@ zTU%|XPM+e<>d97WGDsIw#q`NmhCqo|%sj_EV2o6weMxa^NGFXf$>&@m6r3UWVs&B23`{?|}>iu>?NH9-|z+FX7@VEdK|qG+VX+ delta 296 zcmZ3};h%zz=AY_9pi%U{-c^JeQBqr`xFp*+p;Ppt&$;sDI2+uFdNm1ltkYSKx zXOM*%nVGL2P?VWh5?oT0nh4Y<&!8|_nNi7b5a=@I2;QK^gxOxYqFRzGEPolkqlyD5CHmzg@KVlkbxb@GG|}{vKbgSH!%nc tNp541-U#F{F>nD%E+Eaoz|6n_RL%`#@jw(ZC^9Gkd5jFoK$3|;1prM|J|6%8 diff --git a/src/App.java b/src/App.java index b75b810..b87f854 100644 --- a/src/App.java +++ b/src/App.java @@ -1,7 +1,27 @@ -public class App { - public static void main(String[] args) throws Exception { - System.out.println("Hello, World!"); - } -} +import java.util.Random; -/* TEsts */ \ No newline at end of file +public class App { + public static void main(String[] args) { + System.out.println("A code request you have made,"); + System.out.println("Fear not, for I am here to aid."); + System.out.println("In Java, a language so grand,"); + System.out.println("I'll lend you a helping hand."); + + // Creating a Random object + Random random = new Random(); + + // Define the range for x and y + int minRange = -1000; + int maxRange = 1000; + + // Generate random values for x and y within the specified range + int x = random.nextInt(maxRange - minRange + 1) + minRange; + int y = random.nextInt(maxRange - minRange + 1) + minRange; + + int sum = x + y; + + System.out.println("The sum of " + x + " and " + y + " is: " + sum); + + System.out.println("May the code be with you!"); + } +} \ No newline at end of file