Answers for "random number generator"

C#
13

javascript random color generator

function generateRandomColor() {
  var letters = '0123456789ABCDEF';
  var color = '#';
  for (var i = 0; i < 6; i++) {
    color += letters[Math.floor(Math.random() * 16)];
  }
  return color;
}

var randomColor=generateRandomColor();//"#F10531"
Posted by: Guest on August-05-2019
5

Random number

function randomInteger(min, max) {
  return Math.floor(Math.random() * (max - min + 1)) + min;
}
Posted by: Guest on May-29-2020
1

random number generator

Random rnd = new Random();
int randomNumberTo10 = rnd.nextInt(10); // 0 - 9-ig generálhat számokat, 10-et sosem generál
Posted by: Guest on October-18-2021
6

random photo generator

// change the numbers to whatever dimensions you need

https://picsum.photos/200/300
Posted by: Guest on December-10-2020
9

rng

Random rng = new Random()
rng.Next(min,max)
Posted by: Guest on June-10-2020
7

random number generator

Random RNG = new Random();
int randomNumber = RNG.Next(x, y) //x is the minimum number, and y is the amount of possible numbers
Posted by: Guest on April-16-2021

Code answers related to "random number generator"

C# Answers by Framework

Browse Popular Code Answers by Language