a program to print random token numbers?
A program to print random token numbers.
Generate random numbers using a random number generator
Convert the numbers to strings and store them in an array
Print the token numbers from the array
Using Math.random() Here the function getAlphaNumericString(n)
public class RandomString {
static String getAlphaNumericString(int n)
{
String AlphaNumericString = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
+ "0123456789"
+ "abcdefghijklmnopqrstuvxyz";
StringBuilde...read more
Import numpy as np
Print(np.random(1,100)
int main() {
int c, n;
printf("Ten random numbers in [1,100]\n");
for (c = 1; c <= 10; c++) { n = rand() % 100 + 1; printf("%d\n", n); }
return 0;}
Printf("random numbers")
#include <stdio.h>#include <stdlib.h>
int main() { int c, n;
printf("Ten random numbers in [1,100]\n");
for (c = 1; c <= 10; c++) { n = rand() % 100 + 1; printf("%d\n", n); }
return 0;}
Printf ("hello world")
Print("hello world")
Popular interview questions of Trainee
Reviews
Interviews
Salaries
Users/Month