Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class wallet //creates a class wallet
- {
- int currency1 = 0; //makes it have no money
- }
- using System;
- public class Program
- {
- public static void Main()
- {
- CurrencyBlock = new Random(); //starts randomly generating numbers
- for (int i = 0; i < 100000; i++) //generates 100,000 numbers
- public static int GenerateRandomInt(CurrencyBlock) //actually makes the numbers
- {
- return rnd.Next();
- }
- }
- class input //makes a class for the input
- {
- Console.ReadLine(); //reads input
- }
- if input = CurrencyBlock //if the input is one of the numbers
- int currency1 + 1 //it adds a coin to the wallet
- int currency1 / 100 = final_number //divides currency by 100
- Console.WriteLine(final_number); //gives you your amount of money you have
- //the cryptocurrency is worth 1p per coin
- //to see this script in python, see here: https://pastebin.com/tMsLmAAv
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement