What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-06 12:19:02
dart random password generator
import 'dart:math'; void main() { print(getRandomString(5)); // 5GKjb print(getRandomString(10)); // LZrJOTBNGA print(getRandomString(15)); // PqokAO1BQBHyJVK } const _chars = 'AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz1234567890'; Rand... Add solution -
C 2021-09-30 08:24:06
how to find length for string in c
// include all the libraries used in the program. #include <stdio.h> #include <string.h> // Calculate Length of String Using strlen() Function int main() { char a[100]; int length; printf("Enter a string to calculate its length\n&... Add solution -
C 2021-09-25 13:16:02
lru page replacement algorithm in c
/* This code is contributed by : Tanishq Vyas (github : https://github.com/tanishqvyas ) */ #include <stdlib.h> #include <stdio.h> int main(int argc, char const *argv[]) { int length; int num_frames; printf("Enter the ... Add solution -
C# 2021-09-16 17:53:02
generate random string C#
private static Random random = new Random(); public static string RandomString(int length) { const string chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; return new string(Enumerable.Repeat(chars, length) .Select(s => s[random.N... Add solution