Jump to content
TRiLeZ

Welcome our new developer, Todd

Recommended Posts

Gratz, I hope to be a dev one day as well...

I can do basic ish pretty easily atm like this.

I am in no hurry tho, currently going for my csc degree

/***********************************************************************************/

import java.util.Random; 
import java.util.Arrays;

public class randomNumbers  
{
   public static void main(String[] args)  
   {
    
    //***********Initialize variables************// 
    Random rand = new Random();   
    int[] numbers = new int[10]; //Initialize array      
    
    //**********************************************************************************//
    
    //For loop generates 10 Random Numbers in the range 1 - 23
    for(int i = 0; i < numbers.length; i++) 
    {
      //Generate random numbers between 1-23 
      int randomNum = rand.nextInt((23-1)+ 1) + 1;     
      
      //if number generated is less than 20
      if(randomNum < 20)   
      {
         //number generated is part of numbers to be outputted     
         numbers = randomNum;      
      }
      
      else  //else statement
      {
         //quit program as number is greater than 20
         break;   
      }  //end if
     
    }//end for loop
    
    //Display output
    System.out.println("Numbers Generated: " + Arrays.toString(numbers));  
    
    //**********************************************************************************//
   } //end main
} //end program

 

 

Edited by RonBeastly
  • thonking 1

Share this post


Link to post
Share on other sites

Hey welcome!

 

So to my understanding when you were an admin back in the day you were learning computer science in Uni? And now you've finished your degree and Trilez added you as a dev?

Would be cool to learn the story of how you got started at tribot and how you went advancing ranks.

  • Like 1

Share this post


Link to post
Share on other sites
4 hours ago, Enano25 said:

Hey welcome!

 

So to my understanding when you were an admin back in the day you were learning computer science in Uni? And now you've finished your degree and Trilez added you as a dev?

Would be cool to learn the story of how you got started at tribot and how you went advancing ranks.

At first I was a weeaboo, then I was a rabbit, and now i fix bugs.

  • Like 2
  • Haha 1
  • thonking 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×