RANDOM PROGMEM help

I want to print this randomly can you write me the serial.printl code for it
//We always have to include the library #include "LedControl.h" #include "HX711.h" #include "avr/wdt.h" #include <SoftwareSerial.h> #include <avr/pgmspace.h> const char string_0[] PROGMEM = "Bugun kendine guvenebilirsin fakat bazi puruzler gun icinde seni rahatsiz edebilir. Yenilgiyi kabul etmiyorsun."; const char string_1[] PROGMEM = "Yakininda bulunan birinden hoslaniyor duygularinin ileri gitmemesi icin kendine gereksiz yere baski uyguluyorsun."; const char string_2[] PROGMEM = "Ask hayatin disaridan sorunsuz gibi gorunse de problemlerin var Strese hazirlikli olmalisin. Sakin kontrolu kaybetme"; const char string_3[] PROGMEM = "Acele ve israr aleyhine oluyor, Ask hayatinla ilgili rahatsiz oldugun durumlari degistirmek icin bir seyler yapman gerekiyor."; const char string_4[] PROGMEM = "Seni seven birinin sana cok sevindirici surprizi var. Ask hayatina guven ve canlilik gelecek Seni sasirtacak gelismeler var."; const char string_5[] PROGMEM = "gecici maddi sikintilarin var ask hayatin hakkinda guzel seyler soylemek isterdim ama o da pek iyi gorunmuyor. Kendin ol"; void setup() { } void loop() { }

This looks familiar.
Have you created a new username?

yes I'm sorry

Why have you created multiple accounts ?

Which one of your 3 usernames would you like to keep ?

The weird thing is, I'm sure I've already responded to this topic (in another guise) but can't find my replies.
(To be fair, I can't be bothered to try very hard)

//We always have to include the library
const char string_0[] PROGMEM = "Bugun kendine guvenebilirsin fakat bazi puruzler gun icinde seni rahatsiz edebilir. Yenilgiyi kabul etmiyorsun.";
const char string_1[] PROGMEM = "Yakininda bulunan birinden hoslaniyor duygularinin ileri gitmemesi icin kendine gereksiz yere baski uyguluyorsun.";
const char string_2[] PROGMEM = "Ask hayatin disaridan sorunsuz gibi gorunse de problemlerin var Strese hazirlikli olmalisin. Sakin kontrolu kaybetme";
const char string_3[] PROGMEM = "Acele ve israr aleyhine oluyor, Ask hayatinla ilgili rahatsiz oldugun durumlari degistirmek icin bir seyler yapman gerekiyor.";
const char string_4[] PROGMEM = "Seni seven birinin sana cok sevindirici surprizi var. Ask hayatina guven ve canlilik gelecek Seni sasirtacak gelismeler var.";
const char string_5[] PROGMEM = "gecici maddi sikintilarin var ask hayatin hakkinda guzel seyler soylemek isterdim ama o da pek iyi gorunmuyor. Kendin ol";

const char * const strings[] = {string_0, string_1, string_2, string_3, string_4, string_5};

void setup()
{
  Serial.begin(115200);
  delay(200);
  randomSeed(analogRead(A0));
  Serial.println((__FlashStringHelper *) (strings[random(6)]));
}
void loop() { }

Dear John Wasser you are a great person :)) I applied the codes you gave and it worked perfectly. if possible can i ask a second question

There are the letters ı, ç, ğ, ö, ü in the Turkish alphabet. How can I print these letters on a thermal printer. is it possible to do this with arduino codes

That depends on the thermal printer.

Actually I see that you seem to have 4 accounts in total and as you have not replied I have silenced the other 3

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.